package strslice

import "github.com/docker/docker/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

func (e *StrSlice) UnmarshalJSON(b []byte) error

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

strslice.go

Version
v1.13.0-rc7
Published
Jan 12, 2017
Platform
js/wasm
Imports
1 packages
Last checked
11 seconds ago

Tools for package owners.