This is a quick start docker image for the Go+ programming language (https://goplus.org/)
66
This is a quick start docker image for the Go+ programming language
To get started the first Go+ program, follow these instructions:
$ docker pull hemashushu/goplus
$ docker run -it --rm hemashushu/goplus
package main
func main() {
println("Hello world")
}
Save this snippet into a file named hello.gop.
Now do: gop run hello.gop.
Congratulations - you just wrote and executed your first Go+ program!
You can compile a program without execution with gop build hello.gop. See gop help for all supported commands.
println is one of the few built-in functions. It prints the value passed to it to standard output.
See https://tutorial.goplus.org/hello-world for more details.
You can share files with the host to compile or run Go+ projects located on the host in the container.
The following assumes that the path to your Go+ project files on the host is /home/yang/goplus_projects. Use the following command to start the container:
docker run \
-it --rm \
--mount type=bind,source="/home/yang/goplus_projects",target=/root/goplus_projects \
hemashushu/goplus
Remember to replace
/home/yang/goplus_projectsin the above command with your project path. goplus After entering the container, you will find agoplus_projectsfolder. Create, compile, and run your Go+ programs in this folder.
Content type
Image
Digest
sha256:c36f5de35…
Size
325 MB
Last updated
over 2 years ago
docker pull hemashushu/goplus