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)
commitefc0f2987f852fb2ec6d62a38a64c1e131aec569
tree2b5c4f4325424fbc50b5f5dce9fa65f5305ed8b4
parent3a4124d257f32e8b1bc770c9806bf68a84afc8d2
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.
types/args.go