util

package
v1.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringOrInteger

type StringOrInteger string

StringOrInteger is scalar value that might be a string or an integer.

func (*StringOrInteger) UnmarshalJSON

func (sos *StringOrInteger) UnmarshalJSON(b []byte) error

UnmarshalJSON handles the decision of this being a string or integer and unmarshaling accordingly.

type StringOrSlice

type StringOrSlice []string

StringOrSlice is a slice of strings that might be just a single string in JSON. e.g. if the value is "foo" we want to make it ["foo"]

func (*StringOrSlice) UnmarshalJSON

func (sos *StringOrSlice) UnmarshalJSON(b []byte) error

UnmarshalJSON handles the decision of this being a string or slice and unmarshaling accordingly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL