Quick toolbox for common data processing developed by Go language。Go语言开发的常用数据处理的快捷工具箱。
Go to file
2024-04-03 10:37:59 +08:00
.github Bump codecov/codecov-action from 3 to 4 (#59) 2024-03-15 09:45:31 +08:00
anyUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
byteUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
cryptoUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
emojiUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
floatUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
jsonUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
mapUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
mathUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
sliceUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
strUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
validUtil fix: err code 迁移到各自的包下 (#65) 2024-04-03 10:37:59 +08:00
.gitignore git ignore 2023-07-05 22:54:38 +08:00
CHANGELOG.cn.md fix: v2.1.2 change log (#64) 2024-04-03 10:17:49 +08:00
CHANGELOG.md fix: v2.1.2 change log (#64) 2024-04-03 10:17:49 +08:00
go.mod go mod v2 2023-05-05 15:25:57 +08:00
LICENSE Initial commit 2023-03-06 17:17:07 +08:00
Makefile Update Makefile (#53) 2023-08-08 22:36:12 +08:00
README.cn.md Feature/cryptoUtil rsa (#62) 2024-03-15 13:00:19 +08:00
README.md readme update 2023-05-16 18:10:38 +08:00

go-easy-utils

Go Release Action Report Coverage Doc License

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

Use users with Go1.18 and above, it is recommended to install v2.x.x. Because v2.x.x app rewritten most functions of Go1.18

go get -u github.com/jefferyjob/go-easy-utils/v2

Users who use versions below Go1.18, please use v1.x version

Use Demo

package main

import (
	"fmt"
	"github.com/jefferyjob/go-easy-utils/v2/sliceUtil"
)

func main() {
	var slice = []string{"this", "is", "go", "easy", "utils"}
	chunkSlice := sliceUtil.ChunkSlice(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
mathUtil The Math function can handle values within the range of integers and floats. 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

JetBrains