Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

solodynamo/go-init

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


go-init


The simple no fuss solution to your Go ambitions.

go-init:

  • Provides option to select the version of go to be downloaded.
  • Downloads appropriate go binary of your selected version for your platform from official google source.
  • Extracts the binary and runs it,
  • Setups $GOROOT and $GOPATH by entering required path variables into your zsh or bash shell automatically.
  • Removes the downloaded .gz file and cleans things up.
  • Remove past installations using the script.

It is written with an aim to fasten golang setup.

Table of Contents

Install

# wget or curl the script
$ wget https://raw.githubusercontent.com/solodynamo/go-init/master/goinit.sh
$ curl https://raw.githubusercontent.com/solodynamo/go-init/master/goinit.sh > goinit.sh

# Alternatively you can clone the repo and use it.
$ git clone git@github.com:solodynamo/go-init.git

# Do this
$ sudo chmod +x goinit.sh

Usage

  • install go
./goinit.sh
  • removes go
./goinit.sh -goaway

Example


go-init-snap


Info

Path set for $GOROOT and $GOPATH

export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/goworkspace
export PATH=$PATH:$GOPATH/bin

Contribute

Always do :)

Quirk

If you see a halt after running the script, type exit and enter and keep doing this until things are done :)

License

MIT Β© Solodynamo

About

The only Golang script you will ever need to get started .... πŸƒ

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.