# go_util **Repository Path**: jetereting/go_util ## Basic Information - **Project Name**: go_util - **Description**: go语言工具 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-27 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go_util go语言工具 - 支持给字符数组洗牌 - 支持interface转化为具体类型 - 支持获取字符串中间字符 Installation ------------ Use go get. go get github.com/Jetereting/go_util Then import the validator package into your own code. import "github.com/Jetereting/go_util" 示例: ```golang // interface转化为string fmt.Println(util.NewT(123).ToString()) // output:123 // 获取字符串中间字符 fmt.Println(util.Str("12345").GetBetween("1","4")) // output:23 // 给字符数组洗牌 fmt.Println(util.StrArr{"1","2","3"}.Random2String()) // output:2,1,3 ```