Commit Graph

5 Commits

Author SHA1 Message Date
Alex Flint a081287ba6 drop extraneous log 2021-04-19 22:27:42 -07:00
Alex Flint 3a035a19bd deal with chan, map, and slice types that implement TextUnmarshaler 2021-04-19 22:23:18 -07: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 679dadd066 based functions all working 2017-02-15 17:42:57 -08:00