Skip to content

This script sets GOPATH variable automatically when you enter in the tree Go project.

License

Notifications You must be signed in to change notification settings

j2rome/gopath-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

gopath-auto

This script sets GOPATH variable when entering in the tree Go project.

Install

Source the script into .bashrc or .zshrc

source gopath-auto.sh

Usage

Into the root directory of your Go project create the file :

touch .gorc

That's all.

Now if you go in your project or in subdirectories, GOPATH variable is set where the ".gorc" file is found and command prompt displays the end of GOPATH. If you leave your project, GOPATH variable is unset.

About

This script sets GOPATH variable automatically when you enter in the tree Go project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages