Lancet is a comprehensive, efficient, and reusable util function library of Go, inspired by the Java Apache Commons package and lodash.js.
Features
- Comprehensive, efficient, and reusable
- 100+ common Go util functions, support string, slice, DateTime, net, crypt
- Only depend on the Go standard library
- Unit test for every exported function.
Installation
go get github.com/duke-git/lancet
Usage
Lancet organizes the code into package structure, and you need to import the corresponding package name when using it. For example, if you use string-related functions, import the strutil package as below: