mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
2e0edc2e2eed31faf9fe9bc08d55e9d6092e2638
go-easy-utils
English | 简体中文
Introduction
This is a general data type processing tool class based on Go language, which helps developers process common data types and data operations in business code implementation. It allows you to focus on the implementation of your business code without processing the basic data type conversion and validation functions. The non-intrusive design of the tool library can make your business code easier to read and elegant.
Quick Start
Install
go get -u github.com/jefferyjob/go-easy-utils
Use Demo
package main
import (
"fmt"
"github.com/jefferyjob/go-easy-utils/sliceUtil"
)
func main() {
var slice = []string{"this", "is", "go", "easy", "utils"}
chunkSlice := sliceUtil.ChunkStr(slice, 2)
fmt.Printf("%v", chunkSlice)
}
Function list
| Package name | Function Outline | Document |
|---|---|---|
| anyUtil | Convert any type of data to the specified type | README |
| byteUtil | Conversion of byte array | README |
| cryptoUtil | Various encryption processing | README |
| emojiUtil | Decoding and encoding of emoji expression | README |
| floatUtil | Floating-point data processing | README |
| intUtil | Numerical data processing | README |
| jsonUtil | Json data conversion, support weak type conversion | README |
| mapUtil | Map type data processing | README |
| randUtil | Random number generation, including: number, string, byte array | README |
| sliceUtil | Slice processing (grouping, summation, transformation, merging, etc.) | README |
| strUtil | String conversion processing | README |
| validUtil | Common data verification, such as: Chinese, English, name, ID number, phone number, email | README |
Sponsorship and support
GoEasyUtils Thank JetBrains for their support
Languages
Go
99.8%
Makefile
0.2%
