golang-examples

module
v0.0.0-...-750dc23 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: GPL-3.0

README

golang-examples

Go Lang - Examples

GoLang Example is a GNU project providing a collection of useful functions for those looking to learn GoLang. From basic operations to advanced techniques, this library serves as an invaluable guide to mastering the language. Explore and enhance your Go skills with ease!

ARM - Oracle

cd /usr/src/
wget https://go.dev/dl/go1.20.2.linux-arm64.tar.gz -O /usr/src/go1.20.2.linux-arm64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.2.linux-arm64.tar.gz

cat >> /root/.bashrc <<ENDLINE

#golang
export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/root/go
export GOBIN=/root/go/bin
alias godev='nodemon --exec go run main.go --signal SIGTERM'
ENDLINE

INTEL

cd /usr/src/
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz -O /usr/src/go1.20.2.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
mkdir -p /root/go/{bin,pkg,src}

cat >> /root/.bashrc <<ENDLINE

#golang
export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/root/go
export GOBIN=/root/go/bin
alias godev='nodemon --exec go run main.go --signal SIGTERM'
ENDLINE

Jump to

Keyboard shortcuts

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