Skip to content

augustomarinho/go-syntax-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-SYNTAX-STUDY

Setting GOPATH variable dynamically

  1. Adding this function in your ~/.bashrc -
    builtin cd "$@"
    cdir=$PWD
    while [ "$cdir" != "/" ]; do
        if [ -e "$cdir/.gopath" ]; then
            export GOPATH=$cdir
            break
        fi
        cdir=$(dirname "$cdir")
    done
}
  1. Creating an empty file .gopath in your root workspace path touch .gotpath

Good suggestion found here

Good Practies in GoLang

Good Practies

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages