utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSlice

type StringSlice []string

func (*StringSlice) Equals

func (s *StringSlice) Equals(a *StringSlice) bool

Equals does a deep comparison to see if the two String Slices are the same

func (StringSlice) MarshalYAML

func (s StringSlice) MarshalYAML() (interface{}, error)

MarshalYAML turns a StringSlice into either a single yaml key: value or an array. Uses YAML v3

func (*StringSlice) UnmarshalYAML

func (s *StringSlice) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML allows for the yaml representation of StringSlice to be either a single string or a slice of strings. Does not matter what the actual value type of the item contained is (int/bool/etc), it's converted to a string. Uses YAML v3

Jump to

Keyboard shortcuts

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