Skip to content

gotilty/gotil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotil

methods | wiki | documentation

lodash inspired utility library for go


Build Status CodeFactor Go Report Card Scrutinizer code quality (GitHub/Bitbucket) GitHub GitHub go.mod Go version


⚙️ Installation

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

Run on Local

Step 1: git clone this repository gotilty/gotil@github

git clone https://github.com/gotilty/gotil.git

Go to project folder

cd gotil

Step 2: run test

go test -v ./...

Step 3: run benchmarks

go test -v ./... -bench=. -run=xxx -benchmem

🎯 Why GOtil?

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

👀 Examples

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.

📖 [Each]

gotil.Each([]string{"gotilty", "gotil"}, func(v string) {
	fmt.Fprint(os.Stdout, v)
})
// Output: gotiltygotil

TODO

  • Readme File
  • Go Doc
  • ApiDoc
  • Tests