Home > Backend Development > Golang > GO goutil released version v0.6.4! Update at a glance!

GO goutil released version v0.6.4! Update at a glance!

藏色散人
Release: 2023-02-13 19:50:40
forward
3193 people have browsed it

This article will talk about the latest update of goutil, the GO tool library. It introduces the extended tool library of gookit/goutil Go's common functions, what knowledge it contains, and the update log is attached. I hope it will be helpful to everyone!

GO goutil released version v0.6.4! Update at a glance!

gookit/goutil Go is an extended tool library for common functions. Contains: numbers, strings, slices/arrays, Maps, structures, reflection, files, error handling, time and date, CLI, command execution, system information, formatting, common information acquisition, etc.

Github github.com/gookit/goutil

v0.6.2 to v0.6.4 change log

Version update loggithub.com/gookit /goutil/releases/...

Published on 2023.02.11 The following are the cumulative updates from v0.6.2 to v0.6.4

Feature

  • ? feat: str - New check methods ContainsOne, ContainsAll, HasEmpty, IsAllEmpty, etc.0e4792a
  • ? feat: str /textutil - Supports quick replacement of variables for given textecc23cb
  • ? feat: sys,proc - Adds and updates some utility functionsaa78114
  • ✨ feat: fs - Add some practical functions NewIOReader, TextScanner, LineScanner, ReadFile, ReadString, etc.3352512
  • ✨ feat: map, struct - Add new practical functions structs.ToString(), maputil .Data.Uint() 90af09e
  • ✨ feat: stdio - New utility functions NewIOReader, NewScanner ea243d6
  • ✨ feat: arr - new Added check function NotIn, In, ContainsAll/IsParent 2a18ca2
  • ✨ feat: textutil - Added function IsMatchAll() to quickly check whether the text has keywordsd0dade8
  • ✨ feat: math - New generic functions Max, SwapMax to compare and exchange values ​​176923b
  • feat: error, test - New utility functions to quickly assert and return errors or Directly panic 7188216
  • ✨ feat: fs - New functions MkDirs, MkSubDirs to create directories or subdirectories in batches c4447cb
  • ✨ feat: env, sys - New functions EnvPaths, SearchEnvKeys, SearchEnv to quickly obtain and search environment variablesb3d7669
  • ✨ feat: str - New functions IEqual, IContains to ignore case checking strings746eb35
  • ✨ feat: goutil - New functions CallOn, CallOrElse, OrError, OrValue, OrReturn run based on conditions or return values ​​97a2863
  • ✨ feat: arr - New functions StringsAsInts, StringsTryInts, ConvType, etc. are added to quickly convert slice types75d8d89
  • ✨ feat: reflects - New functions ConvSlice are used to convert slice types through reflectionf87fc86
  • ✨ feat: structs - Initialization structure InitDefaults() adds support for slice type fields 948fa70
  • ✨ feat: byte - New functions StrOrErr(), SafeString() check And converted to string when there is no error 767ed80
  • ✨ feat: cmdr - cmdr.Cmd Added new methods ToOSStdoutStderr, ToOSStdout to quickly set the command output to OS stdout, stderr 6aaea78

Fixed

  • ? 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 bf68c94

Update

  • ? up: str, math - Add some OrElse() and other functions that can quickly detect and obtain values ​​at the same time 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): Adjust ENV variable parsing logic and add strutil.Valid() 5193849
  • ? up(str ): update some str value get func 676fe4e
  • ✨ up(env,sys): Add GetMulti, SetEnvMap, UnsetEnvs and other functions 9eaddb5
  • ? up(str): Adjust the processing logic of SplitInlineComment()31445cd
  • ? up(sys): Adjust the logic of SearchPath() to support limiting the number of returned results67cbae1
  • ✅ 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 796d1fe

Other

  • build(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 79d7781
  • doc: re-generate the README docs 42e3084
  • doc: update the doc parse logic, support generic types 030676d
  • doc: generate and update README docs f342e92
  • build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 1e3ea77

##                                
【Related recommendations: Go video tutorial

The above is the detailed content of GO goutil released version v0.6.4! Update at a glance!. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template