docker: Index | Files

package strslice

import ""


Package Files


type StrSlice Uses

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 Uses

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.

Package strslice imports 1 packages (graph) and is imported by 863 packages. Updated 2018-09-13. Refresh now. Tools for package owners.