Giter VIP home page Giter VIP logo

go-easy-utils's Introduction

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

go-easy-utils's People

Contributors

jefferyjob avatar dependabot[bot] avatar qiyanjun123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.