go-syntax-study

module
v0.0.0-...-cc76b4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2019 License: MIT

README

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

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL