Documentation
¶
Index ¶
- func MustOneLineString(document interface{}) string
- func MustString(document interface{}) string
- func OneLineString(document interface{}) (string, error)
- func PrettyPrint(w io.Writer, i interface{})
- func Read(pathname string, document interface{}) error
- func String(document interface{}) (string, error)
- func Write(document interface{}, pathname string) error
- type Admonition
- type StringSlice
- type SubstrateVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustOneLineString ¶
func MustOneLineString(document interface{}) string
func MustString ¶
func MustString(document interface{}) string
func OneLineString ¶
func PrettyPrint ¶
Types ¶
type Admonition ¶
type Admonition struct{}
func (Admonition) MarshalJSON ¶
func (Admonition) MarshalJSON() ([]byte, error)
func (Admonition) UnmarshalJSON ¶
func (Admonition) UnmarshalJSON([]byte) error
type StringSlice ¶
type StringSlice []string
StringSlice is a JSON-aware []string that can cope with AWS' bad habit of turning single-element JSON arrays of strings into strings.
func (*StringSlice) Add ¶
func (p *StringSlice) Add(s string)
Add adds the given string to p as if it were a set. That is, s is added to p if and only if it isn't already there. p will be sorted every time this method is called but it will usually be a no-op.
func (StringSlice) Len ¶
func (ss StringSlice) Len() int
func (StringSlice) Less ¶
func (ss StringSlice) Less(i, j int) bool
func (StringSlice) Swap ¶
func (ss StringSlice) Swap(i, j int)
func (*StringSlice) UnmarshalJSON ¶
func (p *StringSlice) UnmarshalJSON(b []byte) error
type SubstrateVersion ¶
type SubstrateVersion string
func (SubstrateVersion) MarshalJSON ¶
func (v SubstrateVersion) MarshalJSON() ([]byte, error)
func (SubstrateVersion) UnmarshalJSON ¶
func (SubstrateVersion) UnmarshalJSON([]byte) error
Click to show internal directories.
Click to hide internal directories.