RCHQ9+/Go: Difference between revisions
m
Update example session for current go tooling. (Remarkably, the source code does not need an update. It was posted in 2011, pre-Go 1.0, and still compiles and runs just fine today with the most recent version of Go.)
(Go solution) |
m (Update example session for current go tooling. (Remarkably, the source code does not need an update. It was posted in 2011, pre-Go 1.0, and still compiles and runs just fine today with the most recent version of Go.)) |
||
Line 72:
var a int
var q = `</lang>
{{out|Example session building and running program}}
<pre>
$ go build HQ9+.go
$ ./HQ9+ H+H
hello, world
hello, world
</pre>
{{out|Another,
<pre>
$ ./HQ9+ Q >q.go
$
hello, world
</pre>
|