Go: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 68: | Line 68: | ||
* [https://medium.com/hprog99/getting-started-with-go-installation-setup-and-your-first-hello-world-program-fbfe940afae7 Go » Getting Started] | * [https://medium.com/hprog99/getting-started-with-go-installation-setup-and-your-first-hello-world-program-fbfe940afae7 Go » Getting Started] | ||
* [https://github.com/fission/examples/tree/master/go Go » K8s » Fission] | * [https://github.com/fission/examples/tree/master/go Go » K8s » Fission] | ||
* [https://help.sonatype.com/en/go-repositories.html Go » Nexus] | |||
* [https://go.dev/doc/install Go » Install] | * [https://go.dev/doc/install Go » Install] | ||
* [https://go.dev/ Go] | * [https://go.dev/ Go] | ||
Latest revision as of 14:31, 6 March 2026
# possibility of conflict with minikube ⚠️
cat << EXE | sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y golang-1.23-go
update-alternatives --install /usr/local/bin/go go /usr/lib/go-1.23/bin/go 1983
update-alternatives --install /usr/local/bin/gofmt gofmt /usr/lib/go-1.23/bin/gofmt 1983
EXE
export GOPATH=/usr/lib/go-1.23
export PATH=$PATH:$GOPATH/bin
|
Playground
|
Playground | |
|---|---|
mkdir -p /opt/${USER}/chorke/academia/var/playground/go
ls -lah /opt/${USER}/chorke/academia/var/playground/go
ln -s /opt/${USER}/chorke/academia/var/playground/go ${HOME}/Documents/go-playground
| |
ls -lah ${HOME}/Documents/go-playground/
cd ${HOME}/Documents/go-playground/
nano main.go
|
sudo apt purge -y golang-go
apt info golang-1.23-go
apt search golang-go
|
sudo update-alternatives --config go
update-alternatives --query gofmt
update-alternatives --query go
|
go version $(which gofmt)
go version
which go
|
References
|
References | ||
|---|---|---|