SkillAgentSearch skills...

Gomap

Gomap is a package that contains several functions to make it easier to work with maps in Go.

Install / Use

/learn @dimasadyaksa/Gomap
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Gomap

codecov Go Report Card Go Reference GitHub

Gomap is a package that contains several functions to make it easier to work with maps in Go.

Installation

go get github.com/dimasadyaksa/gomap

Usage

package main

import (
    "fmt"

    "github.com/dimasadyaksa/gomap"
)

func main(){
    m := map[string]int{
        "a": 1,
        "b": 2,
        "c": 3,
    }
    
    keys := gomap.Keys(m)
    fmt.Println(keys) // [a b c]
    
    values := gomap.Values(m)
    fmt.Println(values) // [1 2 3]
}

Please refer to the examples directory for more usage examples.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated2y ago
Forks0

Languages

Go

Security Score

70/100

Audited on Apr 22, 2023

No findings