docker: github.com/docker/docker/api/types/strslice Index | Files

package strslice

import "github.com/docker/docker/api/types/strslice"

Index

Package Files

strslice.go

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 376 packages. Updated 2018-09-13. Refresh now. Tools for package owners.