go-shellhook
shell hook library for go programs inspired by direnv
usage
get the latest version
go get -u github.com/patrickhuber/go-shellhook
For a full example see the example
note
This library executes in the shell prompt and does an export of variables in the current shell session. These shell variables will persist between commands.