mapx

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 2 Imported by: 1

README

mapX

Map functions to help compare and merge of maps.

go get github.com/rytsh/liz/utils/mapx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMapSubset

func IsMapSubset(mapSet map[string]interface{}, mapSubset map[string]interface{}) error

IsMapSubset returns true if mapSubset is a subset of mapSet otherwise false

func IsSliceContains

func IsSliceContains(slice []interface{}, value interface{}) error

IsSliceContains returns true if slice contains value otherwise false

func IsSliceSubset

func IsSliceSubset(sliceSet []interface{}, sliceSubset []interface{}) error

IsSliceSubset returns true if sliceSubset is a subset of sliceSet otherwise false

func IsSubset

func IsSubset(set interface{}, subset interface{}) error

func Merge

func Merge(value map[string]interface{}, to map[string]interface{}) 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