maputility

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

func Flatten(kvMap map[string]string, format MapFormatFunction) []string

Flatten reduces a key-value map into a string array using the provided formatting function.

func KeyEqualsValueFormat

func KeyEqualsValueFormat(key string, value string) string

KeyEqualsValueFormat is a formatting function for formatting a map entry like { "key": "value"} into "key=value" when flattening a map.

Types

type MapFormatFunction

type MapFormatFunction func(string, string) string

Jump to

Keyboard shortcuts

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