support

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindSupportedValue

func BindSupportedValue(v any) any

func DetermineShell

func DetermineShell() string

DetermineShell determines shell by parent process name.

func FlattenValues added in v0.10.0

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

func FormatMap

func FormatMap(m map[string]string, delim string) string

func GuessWidth

func GuessWidth() int

func MustValueCloneZero added in v0.9.3

func MustValueCloneZero(p any) any

func MustValueReset added in v0.9.3

func MustValueReset(p any)

func ParseKeyValue added in v0.10.0

func ParseKeyValue(field string) (string, string, bool)

func ParseMap

func ParseMap(text string) map[string][]string

ParseMap applies parsing of maps.

The map syntax is comma-delimited list of key-value pairs. For key-value pairs without an equal sign, the first occurrence of a properly formed KVP implies the rest are keys without values. As a special case, the initial keys without values are added to "".

NoKey,A=1,B,C   --> ""=["NoKey"], "B"=[], and "C"=[]

Another special case is when the first (and only) instance is a key

A=1,2,3         --> "A"=["1","2","3"]  (instead of "A"=["1"], "2"=[], "3"=[])

func SplitList

func SplitList(s, sep string, n int) []string

func Unescape added in v0.10.0

func Unescape(s []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