methods | wiki | documentation
lodash inspired utility library for go
Make sure you have Go installed (download). Version 1.18
or higher is required.
Initialize your project by creating a folder and then running go mod init github.com/your/repo
(learn more) inside the folder. Then install Gotil with the go get
command:
go get -u github.com/gotilty/gotil
Step 1: git clone this repository gotilty/gotil@github
git clone https://github.com/gotilty/gotil.git
Go to project folder
cd gotil
go test -v ./...
go test -v ./... -bench=. -run=xxx -benchmem
GOtil makes go easier by taking the hassle out of working with arrays, numbers, objects, strings, etc. GOtil's modular methods are great for:
- Iterating arrays, objects, & strings
- Manipulating & testing values
- Creating composite functions
Listed below are some of the common examples. If you want to see more code examples , please visit our Recipes repository or visit our hosted API documentation.
gotil.Each([]string{"gotilty", "gotil"}, func(v string) {
fmt.Fprint(os.Stdout, v)
})
// Output: gotiltygotil
- Readme File
- Go Doc
- ApiDoc
- Tests