utils

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileOpener = os.Open
)

Functions

func FailingReader added in v1.0.30

func FailingReader() io.Reader

func FailingWriter added in v1.0.30

func FailingWriter() io.Writer

func NewYamlEncoder added in v1.0.18

func NewYamlEncoder(w io.Writer) *yaml.Encoder

NewYamlEncoder creates and uniformly configures yaml.Encoder across project

func ParseListPathComponent added in v1.0.22

func ParseListPathComponent(path string) (string, []int, bool)

func ToListPath added in v1.0.22

func ToListPath(path string, index int) string

ToListPath like ToPath, but for lists

func ToPath

func ToPath(path, key string) string

ToPath creates path from path and key name

func Unique added in v1.0.33

func Unique(in []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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