Skip to content

Releases: gookit/goutil

v0.6.8

02 Apr 09:11
Compare
Choose a tag to compare

Change Log

Fixed

  • ✅ fix: fix go import error and re-generate docs 049780e

Feature

  • ✨ feat(str): add new util func PathMatch, MatchNodePath for match string path 53f7769
  • ✨ feat(stdio): add new util func for quick output to stdout 4120075
  • ✨ feat(fs): add new util func ResolvePath() and update IsAbsPath() logic 7797e83
  • ✨ feat(fs): add new util func ToAbsPath() for convert path 247c554
  • ✨ feat(fs): add new util func SearchNameUp() for search file or dir path d6255ee
  • ✨ feat(net/ctype): add new util func for check content-type a995df0
  • ✨ feat(str/text): replacer support parse env variable 411ef1f
  • ✨ feat(str/text): replacer support disable flatten vars map f4abba1
  • ✨ feat(fsutil): add more filter for quick use the FindInDir() 78243ff
  • ✨ feat(math): add new util Min, SwapMin func and add more tests 19ba2eb
  • ✨ feat(str/text): VarReplacer support NotFound handler and default value 7670393
  • ✨ feat(net/hreq): add more util func and simple basic-auth build ea450e9
  • ✨ feat(map): add new util func EachAnyMap, ToAnyMap 247e751
  • ✨ feat(net/httpreq): add new option for send request, and add some new util func 721b54a
  • ✨ feat(json,reflect): reflect add new util func for handle map data 9e8a660

Update

  • ✨ up(fs): add new util func PathMatch for match path 86abf8e
  • 👔 up(fmt,math): move commonly util func to pkg basefn 5221781
  • 👔 up(sys): rename a internal func and update some call name 17aeb31
  • 👔 up(net/httpreq): update some client method logic 9454259
  • 👔 up(arr,byte): update some tests and add byteutil add new func a31b4d6
  • 👔 up(cflag): update some method logic and add more tests 62df9a8
  • 👔 up(maputil): update some method logic and add more method for Map e7c80d4
  • 👔 up(test,doc): update some tests and re-generate docs c72adcb
  • 👔 up(fs): add new fs util JoinSubPaths for join paths a56a93e
  • 👔 up(arr,cflag): optimize some util and methods logic 303b699
  • 👔 up(fs): update the Realpath logic, will always return abs path 59575e6
  • 👔 up(text,struct): update some util method, fix text replace error a3f173c
  • 👔 up(all): update some util func, add some new util func 1784bb5
  • 👔 up(str/text): add new option can keep missing vars 346870e
  • ✨ up(net,sys): update some sys and net util func logic fad9894

Other

  • build(deps): bump morphy2k/revive-action from 2.4.1 to 2.5.0 (#88) 9c81ef3
  • build(deps): bump morphy2k/revive-action from 2.5.0 to 2.5.1 (#89) a188557
  • ✅ chore(tests): fix some tests error on windows 78ded57
  • sysutil: non-Linux OS support (#90) 78df8c8
  • build(deps): bump github.com/gookit/color from 1.5.2 to 1.5.3 (#91) bc33394

What's Changed

  • build(deps): bump morphy2k/revive-action from 2.4.1 to 2.5.0 by @dependabot in #88
  • build(deps): bump morphy2k/revive-action from 2.5.0 to 2.5.1 by @dependabot in #89
  • sysutil: non-Linux OS support by @bsiegert in #90
  • build(deps): bump github.com/gookit/color from 1.5.2 to 1.5.3 by @dependabot in #91

New Contributors

Full Changelog: v0.6.7...v0.6.8

v0.6.7

08 Mar 16:27
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat(cflag): add new extra flag value IntsString cdec762
  • ✨ feat(env,sys): add new sys env get and build func EnvironWith 88c83fe
  • ✨ feat(str/textutil): text.VarReplacer support string-map as replace context 9374e19
  • ✨ feat(sys/clip): update and enhance clipboard operate logic fc98d06
  • ✨ feat(cmdr): support set workdir and env-map on run command 7460c0f
  • ✨ feat(fs): update and add some fs util func ededf5b
  • ✨ feat(base): add new pkg basefn for provide some base func 4cd7242

Update

  • 👔 up(map): update and enhance some util func logic 69dbc9a
  • 👔 up(cli): update the cli line builder logic 5036234
  • ✨ up(math): add new util func SafeInt64 39019ad
  • ✨ up(stdio): add new func WriteString, WriteBytes for write to stdout b40b237
  • 👔 up(str/text): update the replacement format parse logic, allow one left char ccf2430
  • 👔 up(cli/cmdline): use strings.Builder refactor the cmdline.Builder logic 7060159
  • 👔 up(cli/cmdline): refactor the cmdline.LineParser logic and add more tests 77bac4b
  • 👔 up(sys/clip): add new util func clipboard.Std() 9f81953
  • 👔 up(str,byte): update some util func and add more tests 531fa6b
  • 👔 up(stdio,assert): add more util func and add more tests 000ca90

Other

  • build(deps): bump golang.org/x/term from 0.5.0 to 0.6.0 (#86) b2962fb
  • build(deps): bump golang.org/x/text from 0.7.0 to 0.8.0 (#85) 57a853d
  • 📝 chore: add more tests and update readme docs 3c23237

v0.6.6

26 Feb 03:25
Compare
Choose a tag to compare

Change Log

Fixed

  • 💚 fix: fix unit test error ba0c414
  • 🐛 fix(fs): fix test error on Windows f290bee
  • 🐛 fix(sys): fix test error on Windows 8dab697

Feature

  • ✨ feat(cflag): new add cflag.KVString flag value 8fe06c4
  • ✨ feat(str): add new util func SplitKV() and ContainsByte() d593952

Update

  • 👔 up(sys): update the os check and open URL logic e500a04
  • 👔 up(sys): update and add some cmdr build methods 0cd4fda
  • 👔 up(fs): update some fs info util functions 2052663
  • ✨ up(map): add new util func SimpleMerge() and Data.Load() 87534df
  • 👔 up(doc): update the README docs, cmdr add method AddCmdline() 2f3c2d7
  • 👔 up(cflag,doc): update readme docs, add more tests for cflag c9dcde9

Other

  • ⬆️ dep: update some deps to the latest version 028ef72
  • 🎨 chore(all): fix and update some code style check error f998357

v0.6.5

19 Feb 09:20
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat(cli,cflag): add add new flag var ConfString 40a14e0
  • ✨ feat(textutil): add func ParseInlineINI quick parse inline INI config 9cd6487
  • ✨ feat(str): add QuickMatch and GlobMatch for match string 8d5e4f4
  • ✨ feat(str): add struct Builder for safe build string b34245e
  • ✨ feat(err,byte,go): add some new util functions 3d304b0
  • ✨ feat(arr,map): add new util func CombineToSMap 3699a1a
  • ✨ feat(cflag,struct): add new util func IsGoodName, ParseTagValueQuick 40ccfb8

Update

  • ♻️ up(errorx): add errorx/panics from testutil/panics 06b949d
  • 👔 up(arr,sys): add alias method for exist util func dcc5261
  • 📝 up(doc): update and re-gen the readme docs e6498a3

What's Changed

New Contributors

Full Changelog: v0.6.4...v0.6.5

v0.6.4

11 Feb 03:27
Compare
Choose a tag to compare

Change Log

  • 🐛 fix(dump): makeslice: cap out of range. fix: #76 4ba9b10

v0.6.3

11 Feb 03:10
Compare
Choose a tag to compare

Change Log

Update

  • ✨ up(env,sys): update some func and add new util func 9eaddb5
  • 👔 up(str): update the SplitInlineComment() logic 31445cd
  • 👔 up(sys): update the SearchPath(), support limit result 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 796d1fe

Other

  • build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 1e3ea77

v0.6.2

02 Feb 05:08
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix(env, str): fix the envutil test error and update some str util 2e7aa63

Feature

  • 👔 feat: str - add some check util func 0e4792a
  • 👔 feat: str/textutil - support quick replace vars for give text ecc23cb
  • 👔 feat: sys,proc - add and update some util func aa78114
  • ✨ feat: fs - add more new fs util functions 3352512
  • ✨ feat: map, struct - add new util functions 90af09e
  • ✨ feat: stdio - add new util functions ea243d6
  • ✨ feat: arr - add new util functions for in/notIn check 2a18ca2
  • ✨ feat: testutil - add new util func IsMatchAll() d0dade8
  • ✨ feat: math - add new util func for compare value 176923b
  • feat: error, test - add some new helper util fuctions 7188216
  • ✨ feat: fs - add more make dir util func c4447cb
  • ✨ feat: env,sys - add new func for get all env info map b3d7669
  • ✨ feat: str - add new func for check ignore case string 746eb35
  • ✨ feat: goutil - add new func for quick run go func 97a2863
  • ✨ feat: arr - add new func for quick convert slice type 75d8d89
  • ✨ feat: reflects - add new func for convert slice value and more util f87fc86
  • ✨ feat: structs - func InitDefaults() support set slice field 948fa70
  • ✨ feat: byte - add StrOrErr(), SafeString() for convert to string 767ed80
  • ✨ feat: cmdr - add new option for output result to OS 6aaea78

Update

  • 👔 up: str, math - add new util func OrElse() cb21fbc
  • 👔 up: str - update some util func and add more tests a3e07f4
  • 🐛 up: textscan - fix multi inline comments parse error bf68c94
  • 👔 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): update the env var parse and strutil.Valid() 5193849
  • 👔 up(str): update some str value get func 676fe4e

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

v0.6.1

12 Dec 06:14
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: add new sub package byteutil provide some bytes utils e5a08d4
  • ✨ feat: add new sub package strutil/secutil provide aes cbc crypto function e121b7c
  • ✨ feat(dump): support dump []byte as string and more new options #74 025464a
  • ✨ feat(structs): add new util func for check struct field is exported 179afea
  • ✨ feat(dump): support skip nil field dump on map, struct by option SkipNilField #41 a55c5ca
  • add SubstrCount and test case. 1bff3b3

Update

  • up: str, math - update some for int64 to string convert 449331c
  • 👔 up: str - update bytes util and add new hash utils 8eef351
  • 🔥 up: remove deprecated package common 17c4895

Other

  • build(deps): bump golang.org/x/text from 0.4.0 to 0.5.0 5297b13
  • chore: update some readme and re-generate readme docs c3f5086
  • 💡 chore: add package comment or exported var comment 6ace647
  • 💡 chore: add exported var comment, fix some name style ea10bc7
  • 💡 chore: add comment for exported vars, methods. bc0a0b8

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

29 Nov 03:41
Compare
Choose a tag to compare

Change Log

NOTE: since v0.6.0 require go 1.18

Refactor

  • refactor: replace Readdir(-1) with ioutil.ReadDir cd99ed9

Feature

  • up: sysutil/cmdr - add more feature methods for cmdr.Cmd d769fc1
  • feat: errorx - add some feat error types to errorx b177c93
  • feat: add some commonly asset function like NotEqual, NoError 767d6c6
  • feat: arr - add new func Map/Column for mapping an object list to flatten list 3a623fd
  • feat: add sync errgroup to goutil package dd9e08d
  • feat: str - add more padding util functions 55b0e17

Update

  • up: sys/cmdr - add more methods to Task, update some tests f13aac2
  • up: env - add some env func, update readme docs f5ee49b
  • up: std - remove some unused files and pkg on std 0aaeb53
  • up: sysutil/cmdr - update the task, runner logic, rm dep cliutil b7ca58f
  • up: str, cmdr - add some new tool function and method 496f72e
  • up: require go >= 1.18, and only tests on go 1.18+ 965e4f0
  • up: remove any.go file, update some arr util functions 623fc20
  • up: migrate interface{} to go1.18 any keywords a90d655
  • up: migrate more interface{} to go1.18 any keywords b198b73
  • up: update readme template and re-generate README 6a1054c
  • up: errorx - update extend error types, add more unit tests 71fc27a
  • up: str - update and add some encode util functions 9adb2fe
  • up: str - update and add some rune util functions 887ac5b
  • up: net - update and add some http client util functions 7f9bebc
  • up: net - remove not used sub package httphelper 0caf321
  • up: com, dump - add some common types and update for dump slice 8fc1499
  • up: fix some tests and code style error daabe2b
  • up: modify some dep package logic 3640638
  • up: fix cli read error and add new cli util func 40e02c7

Other

  • build(deps): bump golang.org/x/text from 0.3.8 to 0.4.0 6619a9a
  • style: format all sub pkg codes by go fmt 3f1a328
  • chore: migrate more interface{} to go1.18 any keywords 7ba341d
  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 d5689ca
  • doc: update and re-generate README docs 5346ec5
  • chore: add desc commonts for const, vars and package ad8ce94
  • chore: re-genreate docs and fix pkg not import c6fc881

New Contributors

Full Changelog: v0.5.15...v0.6.0

v0.5.15

16 Oct 14:22
Compare
Choose a tag to compare

Change Log

Update

  • up: textscan - update the multi line value match logic 1ac1ddc
  • up: cflag - update some comments for type 9027fde

Other

  • chore: textscan - update pkg readme f6ba94b
  • doc: update top and some sub pkg README docs 87c962d
  • chore: update toe arr, str, test pkg README 7526dca