您好,欢迎访问一九零五行业门户网

GO goutil发布了v0.6.4版!更新速览!

本篇文章带大家聊聊go工具库goutil的最新更新情况,介绍了gookit/goutil go常用功能的扩展工具库,都包含哪些知识,附更新日志,希望对大家有所帮助!
gookit/goutil go 常用功能的扩展工具库。包含:数字,字符串,slice/数组,map ,结构体,反射,文件,错误处理,时间日期,cli ,命令运行,系统信息,格式化,常用信息获取等等
github github.com/gookit/goutil
v0.6.2 到 v0.6.4 更新日志版本更新日志 github.com/gookit/goutil/releases/...
发布于 2023.02.11 下面是 v0.6.2 到 v0.6.4 的累计更新
feature? feat: str - 新增检查方法 containsone, containsall, hasempty, isallempty 等 0e4792a? feat: str/textutil - 支持快速替换给定文本的变量 ecc23cb? feat: sys,proc - 添加和更新一些实用函数 aa78114✨ feat: fs - 添加一些实用函数 newioreader,textscanner,linescanner,readfile,readstring 等 3352512✨ feat: map, struct - 新增实用函数 structs.tostring(), maputil.data.uint() 90af09e✨ feat: stdio - 新增实用函数 newioreader, newscanner ea243d6✨ feat: arr - 新增检查函数 notin, in, containsall/isparent 2a18ca2✨ feat: textutil - 新增函数 ismatchall() 快速检查文本是否有关键字 d0dade8✨ feat: math - 新增泛型函数 max, swapmax 比较和交换值 176923bfeat: error, test - 新增工具函数 快速断言并返回错误或直接 panic 7188216✨ feat: fs - 新增函数 mkdirs, mksubdirs 批量创建目录或子目录 c4447cb✨ feat: env,sys - 新增函数 envpaths, searchenvkeys, searchenv 快速获取和搜索环境变量 b3d7669✨ feat: str - 新增函数 iequal, icontains 忽略大小写检查字符串 746eb35✨ feat: goutil - 新增函数 callon, callorelse, orerror, orvalue, orreturn 基于条件运行或返回值 97a2863✨ feat: arr - 新增函数 stringsasints, stringstryints, convtype 等快速转换 slice 类型 75d8d89✨ feat: reflects - 新增函数 convslice 通过反射方式转换 slice 类型 f87fc86✨ feat: structs - 初始化结构体 initdefaults() 新增支持 slice 类型字段 948fa70✨ feat: byte - 新增函数 strorerr(), safestring() 检查并在无错误时转为 string 767ed80✨ feat: cmdr - cmdr.cmd 新增方法 toosstdoutstderr, toosstdout 快速设置命令输出到 os stdout, stderr 6aaea78fixed? fix(env, str): fix the envutil test error and update some str util 2e7aa63? fix(dump): makeslice: cap out of range. fix: #76 4ba9b10? fix: textscan - fix multi inline comments parse error bf68c94update? up: str, math - 新增一些 orelse() 等快速检测同时获取值的函数 cb21fbc? up: str - update some util func and add more tests a3e07f4? up: str,math - update some util func eaf0990? up: str,byte - add and update some util func cf5d34e? up: byte,cflag - update and add some new tests 6e47f69? up(env, str): 调整 env 变量解析逻辑 和新增 strutil.valid() 5193849? up(str): update some str value get func 676fe4e✨ up(env,sys): 新增 getmulti, setenvmap, unsetenvs 等函数 9eaddb5? up(str): 调整 splitinlinecomment() 处理逻辑 31445cd? up(sys): 调整 searchpath() 逻辑, 支持限制返回结果数 67cbae1✅ up(sys,env,map): add more tests case for util func 392536c? up(fs,sys): update some fs and sys util func run logic 7727628? up(struct): update some structs comments and update readme f461852? up(str): update some string util comments and func 796d1feotherbuild(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 79d7781doc: re-generate the readme docs 42e3084doc: update the doc parse logic, support generic types 030676ddoc: generate and update readme docs f342e92build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 1e3ea77                                          
【相关推荐:go视频教程】
以上就是go goutil发布了v0.6.4版!更新速览!的详细内容。
其它类似信息

推荐信息