maps

package
v1.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Package maps provides a set of functions around maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(m map[string]interface{}, filter string) map[string]interface{}

Filter filters a string-key map values based on the given string

func HasKey

func HasKey(m map[string]interface{}, key string) bool

HasKey returns true if a string-key map has a specific value, else false

func KeysToStringSlice

func KeysToStringSlice(m interface{}) ([]string, error)

KeysToStringSlice accepts a map interface and returns its keys as a slice It supports the following map interfaces 1. map[string]string 2. map[string]int 1. map[string]bool 2. map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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