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-rc4
Published
Dec 16, 2016
Platform
js/wasm
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.