mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-09-26 19:11:12 +08:00
dbb8bb13e98e4be06225e68b31bdf65c8383045b
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/v3
Use Demo
package main
import (
"fmt"
"github.com/jefferyjob/go-easy-utils/v3/slicex"
)
func main() {
var s = []string{"this", "is", "go", "easy", "utils"}
c := slicex.Chunk(s, 2)
fmt.Printf("%v", c)
}
Function list
Package name | Function Outline | Document |
---|---|---|
anyx | Convert any type of data to the specified type | README |
bytex | Conversion of byte array | README |
cryptox | Various encryption processing | README |
emojix | Decoding and encoding of emoji expression | README |
floatx | Floating-point data processing | README |
intx | Numerical data processing | README |
jsonx | Json data conversion, support weak type conversion | README |
mapx | Map type data processing | README |
mathx | The Math function can handle values within the range of integers and floats. | README |
randx | Random number generation, including: number, string, byte array | README |
slicex | Slice processing (grouping, summation, transformation, merging, etc.) | README |
strx | String conversion processing | README |
validx | Common data verification, such as: Chinese, English, name, ID number, phone number, email | README |
License
This library is licensed under the Apache-2.0. See the LICENSE file for details.
Languages
Go
99.8%
Makefile
0.2%