package strslice
import "github.com/ory/dockertest/v3/docker/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
- v3.6.0
- Published
- Apr 10, 2020
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.