Where in Trondheim/Oslo/Bergen am I right now? Inspired by `whoami´
Wondering where in Trondheim/Oslo/Bergen you are? Just ask!
$ go get github.com/odinuge/whereami
$ whereami
⣷ Looking for you, Odin! 🚲
Found you, Odin! You are now in/at/close to S. P. Andersens vei, more accurately: 63.409889°N, 10.405213°E 🚲
Hopefully you can track down yourself; literally (or at least the mechanical bike-ish version of you)!
No problem!
$ whereami -name="Karl"
⣷ Looking for you, Karl! 🚲
Found you, Karl! You are now in/at/close to S. P. Andersens vei, more accurately: 63.409889°N, 10.405213°E 🚲
Missing go's bin path in your $PATH
, no problem!
$ eval $(go env|grep GOPATH) && export PATH=$PATH:$GOPATH/bin
$ whereami
$ whereami -h
Usage of whereami:
-city string
What city? (Trondheim, Bergen, Oslo) (default "Trondheim")
-name string
What is your first name? Defaults to your username (default "<insert-your-username-here>")
YES, see go.mod
MIT