go_mysamples

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: GPL-3.0

README

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 2022 Aécio dos Santos Pires

Directories

Path Synopsis
src
aprendago/cap26/exercise26_1
Package exercise26_1 contains functions that export metrics in the "key=value" format supported by monitoring tools like Prometheus, Zabbix, etc.
Package exercise26_1 contains functions that export metrics in the "key=value" format supported by monitoring tools like Prometheus, Zabbix, etc.
course_packt/chapter2/activity2.03
Reference: https://tutorialedge.net/golang/implementing-bubble-sort-with-golang/
Reference: https://tutorialedge.net/golang/implementing-bubble-sort-with-golang/
helloworld
Definition of my package
Definition of my package
processes
Definition of my package
Definition of my package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL