dotno

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSlice added in v0.10.0

func AppendSlice(sl reflect.Value, values ...string) (err error)

func FilterWithValuePattern

func FilterWithValuePattern(cmd *cobra.Command, v reflect.Value, valuePattern string) (idxMap map[int]struct{}, vals []string, err error)

func GetFieldValue

func GetFieldValue(s interface{}, prop string, createIfZero bool) (v reflect.Value, err error)

func GetParentField

func GetParentField(s interface{}, prop string) (parent reflect.Value, name string, err error)

func OutputValues

func OutputValues(cmd *cobra.Command, vals interface{}) (err error)

func SetValue

func SetValue(v reflect.Value, val string) error

func UnsetField

func UnsetField(s interface{}, prop string, all bool) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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