3 ms·
'encoding/json' is definitely more powerful than Python's JSON package. 'http' is similar. But I will say that 'flag' isn't even _close_ to being comparable to
by 010a 10y ago
'encoding/json' is definitely more powerful than Python's JSON package. 'http' is similar.
But I will say that 'flag' isn't even _close_ to being comparable to argparse. flag is, like, the bare minimum you would need to write a command line application that accepts flags and generates help text. There are dozens of libraries for Go that more closely resemble argparse because flag's capabilities are so limited.
- bakery2k 10y ago> flag's capabilities are so limited It's a shame Go's flag package is so poor. Even Docker, who seem to be hugely invested in Go, say "seriously just don't use it". [1] [1] http://www.slideshare.net/jpetazzo/docker-and-go-why-did-we-decide-to-write-docker-in-go/31 http://www.slideshare.net/jpetazzo/docker-and-go-why-did-we-...