pkg/types: Add UnmarshallableString type
authorTom Denham <tom@tomdee.co.uk>
Wed, 1 Jun 2016 00:12:40 +0000 (17:12 -0700)
committerTom Denham <tom@tomdee.co.uk>
Thu, 9 Jun 2016 21:45:58 +0000 (14:45 -0700)
commit031567c216598c0ae400b3049b475bce4bde5452
tree9034b716d3c70e7b4ffe0a5b63830c1335145cf9
parente90d8c12b1cfaea8e0117d4e90194f93bd7f0af0
pkg/types: Add UnmarshallableString type

Allow strings to be unmarshalled for CNI_ARGS

CNI_ARGS uses types.LoadArgs to populate a struct.
The fields in the struct must meet the TextUnmarshaler interface.

This code adds a UnmarshallableString type to assist with this.
pkg/types/args.go