types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package types implements types which can be unmarshaled from json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringMap added in v0.4.0

type StringMap map[string]*string

StringMap stores a list of key=value or key: value as a map.

func (*StringMap) UnmarshalJSON added in v0.4.0

func (r *StringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *r to a copy of data.

type StringOrStringSlice

type StringOrStringSlice []string

StringOrStringSlice stores a single string or a slice as a slice.

func (*StringOrStringSlice) UnmarshalJSON

func (r *StringOrStringSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *r to a copy of data.

type StringSet

type StringSet map[string]bool

StringSet stores a list of strings as a map of bools.

func (*StringSet) UnmarshalJSON

func (r *StringSet) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *r to a copy of data.

Jump to

Keyboard shortcuts

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