🕵️ How to Install Golang in Linux [New 2023 Method]
Nachrichtenbereich: 🕵️ Hacking
🔗 Quelle: kalilinux.in
There is two ways to install Golang in Linux system.
- From the Repository (If Go available in repo).
- Manual Install (Works always) .
Installing Golang from repository
sudo apt-get install -y golang
![]() |
Installing Golang from repository |
Configure
sudo mousepad ~/.bashrc
# Golang paths in bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source .bashrc
sudo mousepad helloworld.go
package main
import "fmt"
func main() {
fmt.Printf("Hello world!\n")
}
go run helloworld.go
Installing Golang manually
![]() |
Download Golang from official website |
cd Downloads
tar -C /usr/local/ -xzf go*.tar.gz
Configuring Golang
sudo mousepad ~/.bashrc
# Golang paths in bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source
~/.bashrc
🕵️ How to Install Golang in Linux [New 2023 Method]
📈 35.44 Punkte
🕵️ Hacking
🔧 Golang Web: POST Method
📈 21.23 Punkte
🔧 Programmierung
🔧 Golang Web: PATCH Method
📈 21.23 Punkte
🔧 Programmierung
🔧 C# dagi Method overload va Method group.
📈 19.88 Punkte
🔧 Programmierung
🔧 JavaScript Object Method and String Method
📈 19.88 Punkte
🔧 Programmierung
🕵️ Method Method Camtasia 2019 Unlimited
📈 19.88 Punkte
🕵️ Hacking
🔧 DAY-14 -Static method and Non static method..
📈 19.88 Punkte
🔧 Programmierung