config

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWithDotNotation

func GetWithDotNotation(s interface{}, prop string) (interface{}, error)

func RootCmd

func RootCmd() *cobra.Command

func SetWithDotNotation

func SetWithDotNotation(s interface{}, prop string, val interface{}) error

Types

type TextSlice

type TextSlice struct {
	Value reflect.Value
	// contains filtered or unexported fields
}

func MustBeTextSlice

func MustBeTextSlice(obj interface{}) *TextSlice

func TextSliceFromStrSlice

func TextSliceFromStrSlice(t reflect.Type, strs []string) (sl *TextSlice, err error)

func ToTextSlice

func ToTextSlice(obj interface{}) (sl *TextSlice, ok bool)

func (*TextSlice) Append

func (sl *TextSlice) Append(strs ...string) (err error)

func (*TextSlice) Get

func (sl *TextSlice) Get(i int) (s string, err error)

func (*TextSlice) Len

func (sl *TextSlice) Len() int

func (*TextSlice) Set

func (sl *TextSlice) Set(i int, s string) (err error)

func (*TextSlice) ToStringSlice

func (sl *TextSlice) ToStringSlice() ([]string, error)

Jump to

Keyboard shortcuts

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