Skip to content

gouniverse/maputils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Utils Open in Gitpod

tests

Description

Utility library for working with maps

Installation

go get github.com/gouniverse/maputils

Function

  • AnyToArrayMapStringAny(data any) []map[string]any - converts an interface to array map[string]any

  • AnyToArrayMapStringString(data any) []map[string]string - converts an interface to array of map[string]string

  • AnyToMapStringAny(data any) map[string]any - converts an interface to map[string]any

  • AnyToMapStringString(data any) map[string]string - converts an interface to map[string]string

  • ArgsToMap([]string) map[string]string - converts an CLI arguments array to map

  • MapAnyToArrayMapStringAny(valueAny any) []map[string]any - converts an interface to array map[string]any

  • MapStringAnyToMapStringString(data map[string]any) map[string]string - converts a map[string]any to map[string]string

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages