package strslice
import "github.com/docker/engine-api/types/strslice"
Index ¶
Types ¶
type StrSlice ¶
type StrSlice []string
StrSlice represents a string or an array of strings. We need to override the json decoder to accept both options.
func (*StrSlice) UnmarshalJSON ¶
UnmarshalJSON decodes the byte slice whether it's a string or an array of strings. This method is needed to implement json.Unmarshaler.
Source Files ¶
- Version
- v0.4.0 (latest)
- Published
- Jul 27, 2016
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 6 days ago –
Tools for package owners.