Skip to content

aeciopires/go_mysamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_mysamples

Codeac.io

Português

Meus primeiros códigos desenvolvidos com a liguagem Go.

  • src: contém o código fonte, bem como o código fonte de pacotes de terceiros importados nos programas;

English

My first codes developed with the Go.

  • src: contains the source code and source code of third party packages imported into programs;

Tutorials

Learn Go

Tutorials and documentation about Go language:

Go in Docker

Use Go in Docker: https://hub.docker.com/_/golang

git clone https://github.com/aeciopires/go_mysamples

cd go_mysamples/src/helloworld

VERSION=1.19-alpine
GO_WORKSPACE=/usr/local/go/src
docker run --rm -v $GO_WORKSPACE/:/go/src/ -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:$VERSION go build -v

./myapp

This will add your current directory as a volume to the container, set the working directory to the volume, and run the command go build which will tell go to compile the project in the working directory and output the executable to myapp.

Install Go from source

Install Go from source. See REQUIREMENTS:

Executing programs with go. Example:

git clone https://github.com/aeciopires/go_mysamples

cd go_mysamples/src/helloworld

go build helloworld.go

./helloworld

#or

go run helloworld.go

Developers

developer: Aécio dos Santos Pires
mail: http://blog.aeciopires.com/contato

License

GPL-3.0 2023 Aécio dos Santos Pires

About

My first codes developed with the Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published