Commit Graph

11 Commits

Author SHA1 Message Date
Alex Flint 92877db009 add initial go.mod, go.sum 2018-11-19 19:04:03 -08:00
Alex Flint 6ab8ad5e1c
Merge pull request #2 from pborzenkov/text-unmarshaler-value
Allow to use values (not pointers) with TextUnmarshaler
2018-11-19 12:48:00 -08:00
Pavel Borzenkov e1338aeff0 Drop special handling of net.IP type
It's now completely covered by generic TextUnmarshaler case.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-18 14:02:17 +03:00
Pavel Borzenkov 38f8eb7c6b Allow to use values (not pointers) with TextUnmarshaler
The patch makes sure that both values and pointer to values are checked
for custom TextUnmarshal implementation. This will allow to use go-arg
custom parsing as follows:

var args struct {
  Arg CustomType
}

instead of

var args struct {
  Arg *CustomType
}

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-16 17:09:52 +03:00
Alex Flint e80c3b7ed2 Merge pull request #1 from alexflint/travis_ping
fix test failures
2017-02-15 18:04:25 -08:00
Alex Flint 45e5d6cd86 whitespace 2017-02-15 17:57:39 -08:00
Alex Flint 9cd235e2a7 fix tests 2017-02-15 17:56:45 -08:00
Alex Flint 2c58a46976 minor tweak 2017-02-15 17:53:42 -08:00
Alex Flint be3c7a3252 add misc support files 2017-02-15 17:52:23 -08:00
Alex Flint e2bdcd773e add readme 2017-02-15 17:49:27 -08:00
Alex Flint 679dadd066 based functions all working 2017-02-15 17:42:57 -08:00