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}}
(Gosh that made cut and paste easier...cut once, paste twice...)
 
Anyway, example session:
<pre>
$ go build HQ9+.go
$ ./HQ9+ H+H
hello, world
hello, world
</pre>
{{out|Another, showing compile link and run ofrunning Q output}}
<pre>
$ ./HQ9+ Q >q.go
$ 8ggo run q.go H
$ 8l q.8
$ 8.out H
hello, world
</pre>
1,707

edits