Documentation ¶
Index ¶
- func Contains(values []string, value string) bool
- func Convert(from, to interface{}) error
- func ConvertIgnoreOmitEmpty(from, to interface{}) error
- func Copy(d interface{}) interface{}
- func DirLs(dir string) ([]interface{}, error)
- func Equal(l, r interface{}) interface{}
- func FileCopy(src, dest string) (err error)
- func Filter(xs []interface{}, p func(x interface{}) bool) []interface{}
- func FilterStrings(xs []string, p func(x string) bool) []string
- func FlatMap(xs []interface{}, f func(x interface{}) []interface{}) []interface{}
- func FlatMapStrings(xs []string, f func(x string) []string) []string
- func GetFsType(device string) (string, error)
- func IsRunningInTty() bool
- func KVPairs2Map(kvs []string) map[string]string
- func Map(xs []interface{}, f func(x interface{}) interface{}) []interface{}
- func Map2KVPairs(m map[string]string) []string
- func MapCopy(data map[interface{}]interface{}) map[interface{}]interface{}
- func MapsDifference(left, right map[interface{}]interface{}) map[interface{}]interface{}
- func MapsIntersection(left, right map[interface{}]interface{}) map[interface{}]interface{}
- func MapsUnion(left, right map[interface{}]interface{}) map[interface{}]interface{}
- func Mount(device, directory, fsType, options string) error
- func Replace(l, r interface{}) interface{}
- func ResolveDevice(spec string) string
- func SliceCopy(data []interface{}) []interface{}
- func ToStrings(data []interface{}) []string
- func TrimSplit(str, sep string) []string
- func TrimSplitN(str, sep string, count int) []string
- type AnyMap
- type Backoff
- type ReturnsErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertIgnoreOmitEmpty ¶ added in v0.4.4
func ConvertIgnoreOmitEmpty(from, to interface{}) error
func Filter ¶ added in v0.4.0
func Filter(xs []interface{}, p func(x interface{}) bool) []interface{}
func FilterStrings ¶ added in v0.4.0
func FlatMap ¶ added in v0.4.0
func FlatMap(xs []interface{}, f func(x interface{}) []interface{}) []interface{}
func FlatMapStrings ¶ added in v0.4.0
func IsRunningInTty ¶
func IsRunningInTty() bool
func KVPairs2Map ¶ added in v0.3.1
func Map ¶ added in v0.4.0
func Map(xs []interface{}, f func(x interface{}) interface{}) []interface{}
func Map2KVPairs ¶ added in v0.3.1
func MapCopy ¶ added in v0.4.0
func MapCopy(data map[interface{}]interface{}) map[interface{}]interface{}
func MapsDifference ¶ added in v0.4.0
func MapsDifference(left, right map[interface{}]interface{}) map[interface{}]interface{}
func MapsIntersection ¶ added in v0.4.0
func MapsIntersection(left, right map[interface{}]interface{}) map[interface{}]interface{}
func MapsUnion ¶ added in v0.4.0
func MapsUnion(left, right map[interface{}]interface{}) map[interface{}]interface{}
func ResolveDevice ¶
func TrimSplitN ¶ added in v0.4.0
Types ¶
type Backoff ¶ added in v0.4.0
type Backoff struct {
StartMillis, MaxIntervalMillis, MaxMillis int
// contains filtered or unexported fields
}
type ReturnsErr ¶
type ReturnsErr func() error
Click to show internal directories.
Click to hide internal directories.