maputil

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package maputil contains utility functions for working with the map[string]interface{} type. The stringmap subpackage 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]interface{}) map[string]interface{}

Copy returns a copy of the map

func Keys

func Keys(m map[string]interface{}) []string

Keys returns the keys of the map as a slice. No order is guaranted.

func SortedKeys

func SortedKeys(m map[string]interface{}) []string

SortedKeys returns the keys of the map sorted in the usual (lexigraphic) order.

func Vals

func Vals(m map[string]interface{}) []interface{}

Vals returns the values of the map as a slice. No order is guaranteed.

Types

This section is empty.

Directories

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

Jump to

Keyboard shortcuts

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