项目作者: theantichris

项目描述 :
A mapping library for Go.
高级语言: Go
项目地址: git://github.com/theantichris/mapping.git
创建时间: 2020-04-24T12:34:51Z
项目社区:https://github.com/theantichris/mapping

开源协议:MIT License

下载


mapping

A mapping library for Go.

Go

Install

  1. go get github.com/theantichris/mapping

Use

ConcurrentMap

Maps an array to another array concurrently using goroutines.

  1. // result: []int{2,3,4}
  2. result, err := ConcurrentMap([]int{1,2,3}, func(num int) int { return num+1 })

Run tests

  1. go test

Run benchmarks

  1. go test -bench=.