Break free from golang gopath (pre go modules)
3cbc123c69d7 — John Mulligan default tip 5 years ago
improve spelling and clarity of readme
add license and readme in preparation for sharing
use exec by default because we only one run tool at a time

heads

tip
browse log

clone

read-only
https://hg.sr.ht/~phlogistonjohn/gtgw
read/write
ssh://hg@hg.sr.ht/~phlogistonjohn/gtgw

#GTGW

GTGW is the "good to go wrapper". It aims at making it easier to work on golang code without needing to stick to the GOPATH directory structure in your own home directory.

##Usage

To use gtgw you need to "tag" the directory that hosts your code with the directory structure that Go expects to see under $GOPATH/src.

Example: gtgw --tag "code.example.com/mygroup/stuff"

Once the repo has been tagged tagged you must prefix the go commands with gtgw and it will automatically mock the go directory structure in a temporary dir before running the real underlying commands.

Example: gtgw go test -v