Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages