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

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
v3.5.2
Published
Oct 31, 2019
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.