types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolTrue

type BoolTrue struct {
	// contains filtered or unexported fields
}

BoolTrue is a custom Yaml boolean type that defaults to true.

func (BoolTrue) Bool

func (b BoolTrue) Bool() bool

Bool returns the bool value.

func (*BoolTrue) UnmarshalYAML

func (b *BoolTrue) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements custom Yaml unmarshaling.

type MapEqualSlice

type MapEqualSlice struct {
	// contains filtered or unexported fields
}

MapEqualSlice is a custom Yaml type that can hold a map or slice of strings in key=value format.

func NewMapEqualSlice

func NewMapEqualSlice(from map[string]string) *MapEqualSlice

NewMapEqualSlice returns a new MapEqualSlice.

func (*MapEqualSlice) Map

func (s *MapEqualSlice) Map() map[string]string

Map returns the Yaml information as a map.

func (*MapEqualSlice) UnmarshalYAML

func (s *MapEqualSlice) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements custom Yaml unmarshaling.

type StringOrSlice

type StringOrSlice struct {
	// contains filtered or unexported fields
}

StringOrSlice is a custom Yaml type that can hold a string or slice of strings.

func NewStringOrSlice

func NewStringOrSlice(from []string) *StringOrSlice

NewStringOrSlice returns a new StringOrSlice.

func (StringOrSlice) Slice

func (s StringOrSlice) Slice() []string

Slice returns the slice of strings.

func (*StringOrSlice) UnmarshalYAML

func (s *StringOrSlice) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements custom Yaml unmarshaling.

Jump to

Keyboard shortcuts

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