DEV Community

Giving Go another chance: command line arguments

Dmitry Yakimenko on January 22, 2019

To make a usable command line tool one has to parse the arguments first. I shopped around for a command line parsing library and found cli and co...
Collapse
 
shindakun profile image
Steve Layton

$GOPATH is becoming less and less of a thing thankfully. Hopefully, soon it will be gone completely.

Collapse
 
detunized profile image
Dmitry Yakimenko

That would be good. But Go has always been a bit weird in many of its aspects. I imagine they get rid of GOPATH and come up with something else to replace it =)

Collapse
 
biros profile image
Boris Jamot ✊ /

Have a look at Go modules! It's the replacement for GOPATH. I've been using it for few months and it's cool. Dependency management, vendoring,... It's the foundation for the future of Go.

Collapse
 
detunized profile image
Dmitry Yakimenko

Thanks, I look it up. ATM I'm trying to avoid getting too deep into tooling and just want to hack a bit in free flow. I know that dependency management in Go is not very pleasant and I don't want to go there just yet. I'm ok running go get and just use the modules from $GOPATH.

Collapse
 
emgodev profile image
Michael

These are some legit reasons to be frustrated, when software wants to maintain it's own environment.