Skip to content
/ mapz Public

Extends the package golang.org/x/exp/maps for working with maps.

License

Notifications You must be signed in to change notification settings

ezpkg/mapz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopherz

ezpkg.io/mapz

PkgGoDev GitHub License version

Package mapz extends the package golang.org/x/exp/maps with additional functions.

Installation

go get -u ezpkg.io/[email protected]

Examples

mapCodes := mapz.FromSliceFunc([]int{1, 2, 3}, func(i int) string {
    return fmt.Sprintf("CODE(%d)", i)
})
fmt.Println(mapCodes)

Similar Packages

This package is based on:

About ezpkg.io

As I work on various Go projects, I often find myself creating utility functions, extending existing packages, or developing packages to solve specific problems. Moving from one project to another, I usually have to copy or rewrite these solutions. So I created this repository to have all these utilities and packages in one place. Hopefully, you'll find them useful as well.

For more information, see the main repository.

Author

Oliver Nguyen  github