stringutils

package
v1.11.0-cni-plu...-8f3027a Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonPrefix

func CommonPrefix(strs []string) string

func ParseKeyDurationList

func ParseKeyDurationList(param string) (map[string]time.Duration, error)

ParseKeyDurationList parses a comma-separated key=value list to a map where the values are parsed as time.Duration.

func ParseKeyValueList

func ParseKeyValueList(param string) (map[string]string, error)

ParseKeyValueList parses a comma-separated key=value list to a map. Keys must contain only word characters (leading spaces ignored). Spaces in the value are preserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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