Hacker News new | ask | show | jobs
by aikah 3539 days ago
Go default flag package is pure garbage though. That's a fact. However, Go cross compilation makes it easy to develop multi-os CLI tools. The downside is the size of the executable, it's easy to reach the 50MB bar with Go binaries.
2 comments

Yes. The default "flag" package is trash. I like the Go team a lot, and I think they did a great job with many things, but it seems to me like they just said, "meh, get something that can work, usability is not something that matters."
consider the history, it probably makes sense if you're used to research unix and plan9
How exactly do you create a program in go that compiles to a 50mb exe?

Why is the flags package trash?