stringmap

package
v0.0.0-...-2c24670 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package stringmap contains utility functions for working with the map[string]string type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

Copy returns a copy of the map[string]string.

func Keys

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

Keys return a slice containing the keys of the map[string]string. No order is guaranteed.

func SortedKeys

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

SortedKeys returns a slice containin the (sorted) keys of the map[string]string, in the usual lexigraphic order provided by sort.Strings

func SortedVals

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

SortedVals returns a slice containin the (sorted) valuess of the map[string]string, in the usual lexigraphic order provided by sort.Strings. Values may not be unique.

func Vals

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

Vals returns a slice containing the values of the map[string]string. No order is guaranteed. Note that values may not be unique.

Types

This section is empty.

Jump to

Keyboard shortcuts

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