filtersutil

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedMapKeys

func SortedMapKeys(m map[string]string) []string

SortedMapKeys returns a sorted slice of keys to the given map. Writing this function never gets old.

Types

type SetFn added in v0.6.0

type SetFn func(*yaml.RNode) error

SetFn is a function that accepts an RNode to possibly modify.

func SetEntry added in v0.6.0

func SetEntry(key, value, tag string) SetFn

SetEntry returns a SetFn to set an entry in a map

func SetScalar added in v0.6.0

func SetScalar(value string) SetFn

SetScalar returns a SetFn to set a scalar value

Jump to

Keyboard shortcuts

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