Sign inSign up

hemashushu/goplus

By hemashushu

Updated over 2 years ago

This is a quick start docker image for the Go+ programming language (https://goplus.org/)

Image
0

66

hemashushu/goplus repository overview

Go+ Docker Image

This is a quick start docker image for the Go+ programming language

Quick start

To get started the first Go+ program, follow these instructions:

  1. Pull this docker image
$ docker pull hemashushu/goplus
  1. Run this container
$ docker run -it --rm hemashushu/goplus
  1. Create the first Go+ program
package main

func main() {
    println("Hello world")
}

Save this snippet into a file named hello.gop.

  1. Run the program

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.

Share files with the host

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_projects in the above command with your project path. goplus After entering the container, you will find a goplus_projects folder. Create, compile, and run your Go+ programs in this folder.

Repo

Tag summary

Content type

Image

Digest

sha256:c36f5de35

Size

325 MB

Last updated

over 2 years ago

docker pull hemashushu/goplus