spf13 / pflag

Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
BSD 3-Clause "New" or "Revised" License
2.43k stars 348 forks source link

support TextVar from go1.19's flag package #355

Open podhmo opened 2 years ago

podhmo commented 2 years ago

https://go.dev/doc/go1.19

The new function TextVar defines a flag with a value implementing encoding.TextUnmarshaler, allowing command-line flag variables to have types such as big.Int, netip.Addr, and time.Time.

jkroepke commented 1 year ago

Does someone found a workaround?