aboutsummaryrefslogtreecommitdiff
path: root/string_array.go
diff options
context:
space:
mode:
authorJonathan Reyna <[email protected]>2017-01-25 10:35:48 -0500
committerEric Paris <[email protected]>2017-01-25 10:35:48 -0500
commita9a634f3de0a7529baded7ad6b0c7467d5c6eca7 (patch)
treea235f03afd02bdd631d1abbadb1d5b299a5170a6 /string_array.go
parenta232f6d9f87afaaa08bafaff5da685f974b83313 (diff)
Add BoolSlice and UintSlice flag types. (#111)
* Add Gogland/IntelliJ/Jetbrains config directory to .gitignore. * Added uint slice flag type. Added godoc for uint slice type. Added unit tests for new uint slice type. * Added new boolSliceValue type to handle []bool arguments. Added unit tests for new boolSliceValue type. Added godoc documentation. * Added new ipSliceValue type to handle []net.IP arguments. Added unit tests for new ipSliceValue type. Added godoc documentation. * Fix golint warnings. * boolSliceValue: - Use CSV parser for boolean flag arguments, and handle corner cases with extraneous quote characters. - Add unit tests for to parse flags with extraneous quote characters. - Add godoc documentation to undocumented methods. * boolSliceValue: - Refactored boolSlice name to boolStrSlice for clarity. - Fix allocation of out variable to len=0 (not len=cap) - Remove extraneous err declaration in range loop. - Actually append bool to []bool. - Simplify unit test function name. ipSliceValue: - Use csv parser for net.IP flag arguments, and handle corner cases with extraneous quote characters. - Add unit tests to parse flags with extraneous quote characters. - Add godoc documentation to undocumented methods. * boolSliceValue: ipSliceValue: - Use csv utility functions instead of duplicating code for reading and writing CSV flag string values.
Diffstat (limited to 'string_array.go')
0 files changed, 0 insertions, 0 deletions