GO tool library goutil released v0.6.4
Tags: programming, go, github, tooling
Published: 2023-02-12 03:52:39

[gookit/goutil](https://github.com/gookit/goutil) - 💪 Helper Utils For Go: int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. 

> GitHub: https://github.com/gookit/goutil

---

## Changlog from v0.6.2 to v0.6.4

### Fixed

- 🐛 fix(env, str): fix the envutil test error and update some str util [2e7aa63](https://github.com/gookit/goutil/commit/2e7aa6329973423a76ea6b9b20a8b9150281dfb1)
- 🐛 fix(dump): makeslice: cap out of range. fix: #76 [4ba9b10](https://github.com/gookit/goutil/commit/4ba9b10e15a448eee1b8d2974835fc69407618ff)

### Feature

- 👔 feat: str - add some check util func [0e4792a](https://github.com/gookit/goutil/commit/0e4792acf21e1bf742f1af5882b74ff40c49b935)
- 👔 feat: str/textutil - support quick replace vars for give text [ecc23cb](https://github.com/gookit/goutil/commit/ecc23cb0cec4c518623b08c37f2e1fd948d6bea2)
- 👔 feat: sys,proc - add and update some util func [aa78114](https://github.com/gookit/goutil/commit/aa78114b0da1017f6456957ba86cd24eeebe5fc7)
- ✨ feat: fs - add more new fs util functions [3352512](https://github.com/gookit/goutil/commit/3352512f6a133ae15a57944bc54362b604c7ff95)
- ✨ feat: map, struct - add new util functions [90af09e](https://github.com/gookit/goutil/commit/90af09e118b4a521c19341e6b8a49a0890e22e7f)
- ✨ feat: stdio - add new util functions [ea243d6](https://github.com/gookit/goutil/commit/ea243d62c89dc9ec7be9fd6a9b0bcdb39bfd506b)
- ✨ feat: arr - add new util functions for in/notIn check [2a18ca2](https://github.com/gookit/goutil/commit/2a18ca2915c93e53aea74e86779943f04bd1910a)
- ✨ feat: testutil - add new util func IsMatchAll() [d0dade8](https://github.com/gookit/goutil/commit/d0dade8703da172f80424ff8c85ec759ec8273ae)
- ✨ feat: math - add new util func for compare value [176923b](https://github.com/gookit/goutil/commit/176923bb953622b995ed80017056cbe04db251cd)
- feat: error, test - add some new helper util fuctions [7188216](https://github.com/gookit/goutil/commit/718821631d8a7cc0567a2f39eece80f1b7c54157)
- ✨ feat: fs - add more make dir util func [c4447cb](https://github.com/gookit/goutil/commit/c4447cb0d32cec53221c3bb99a14ecefc4ec382e)
- ✨ feat: env,sys - add new func for get all env info map [b3d7669](https://github.com/gookit/goutil/commit/b3d7669d1a1c851d7f75e2a9ad449d74ca6c969c)
- ✨ feat: str - add new func for check ignore case string [746eb35](https://github.com/gookit/goutil/commit/746eb35d45a9c0d40fb9ae7945c9fe89bbc79765)
- ✨ feat: goutil - add new func for quick run go func [97a2863](https://github.com/gookit/goutil/commit/97a2863089d70a2d39f5fa720f74890767293d0b)
- ✨ feat: arr - add new func for quick convert slice type [75d8d89](https://github.com/gookit/goutil/commit/75d8d89f4cb7e9c59587caeccfeb73202beb42b1)
- ✨ feat: reflects - add new func for convert slice value and more util [f87fc86](https://github.com/gookit/goutil/commit/f87fc86119afd8418b47e93ad26b3925f78bef15)
- ✨ feat: structs - func InitDefaults() support set slice field [948fa70](https://github.com/gookit/goutil/commit/948fa703e7107edb4dc736aa041c260fc8df7d9b)
- ✨ feat: byte - add StrOrErr(), SafeString() for convert to string [767ed80](https://github.com/gookit/goutil/commit/767ed80a5e98d20b9e832a08d065de301ba0b4ec)
- ✨ feat: cmdr - add new option for output result to OS [6aaea78](https://github.com/gookit/goutil/commit/6aaea78dee886b7aa5483d71826a34813d8cd77b)

### Update

- 👔 up: str, math - add new util func OrElse() [cb21fbc](https://github.com/gookit/goutil/commit/cb21fbc4624c800f9609137e053dfe2fef027190)
- 👔 up: str - update some util func and add more tests [a3e07f4](https://github.com/gookit/goutil/commit/a3e07f4b5fbbb6131d42116a4e1c61c7614d7d69)
- 🐛 up: textscan - fix multi inline comments parse error [bf68c94](https://github.com/gookit/goutil/commit/bf68c945ee79d7e214087ab117b55fa02b0f1c54)
- 👔 up: str,math - update some util func [eaf0990](https://github.com/gookit/goutil/commit/eaf09908ead83f19d6a10882547e5cda1e42a79e)
- 👔 up: str,byte - add and update some util func [cf5d34e](https://github.com/gookit/goutil/commit/cf5d34e6b20bf45830fed19a3d3b6ac4682cdade)
- 👔 up: byte,cflag - update and add some new tests [6e47f69](https://github.com/gookit/goutil/commit/6e47f6911ed99225a1b5f6fdf6cfafe3b034e333)
- 👔 up(env, str): update the env var parse and strutil.Valid() [5193849](https://github.com/gookit/goutil/commit/5193849498317900885f524fae7cf5777559f246)
- 👔 up(str): update some str value get func [676fe4e](https://github.com/gookit/goutil/commit/676fe4e08e7313c593278d9e4f734225381e6be3)
- ✨ up(env,sys): update some func and add new util func [9eaddb5](https://github.com/gookit/goutil/commit/9eaddb5669280dc91c989e4930ecd1efbdef18cf)
- 👔 up(str): update the SplitInlineComment() logic [31445cd](https://github.com/gookit/goutil/commit/31445cd999e5577b9e7e7f6d3e9efe3289fd7131)
- 👔 up(sys): update the SearchPath(), support limit result [67cbae1](https://github.com/gookit/goutil/commit/67cbae1d5db5c5ec09240917fae73c78e7d9e9d6)
- ✅ up(sys,env,map): add more tests case for util func [392536c](https://github.com/gookit/goutil/commit/392536c6b91555d25cb5cbca8dc6ab81a56b92b9)
- 👔 up(fs,sys): update some fs and sys util func run logic [7727628](https://github.com/gookit/goutil/commit/772762873ad9fa766afce0841d0343078770545e)
- 👔 up(struct): update some structs comments and update readme [f461852](https://github.com/gookit/goutil/commit/f461852b5dff186ce1467af42ec31a89f3ae3c22)
- 👔 up(str): update some string util comments and func [796d1fe](https://github.com/gookit/goutil/commit/796d1fe6674337176b82ef71bd1e47b26b80b072)

### Other

- build(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 [79d7781](https://github.com/gookit/goutil/commit/79d77815079d167871c65f27186911014fdb53fd)
- doc: re-generate the README docs [42e3084](https://github.com/gookit/goutil/commit/42e30848e174ad8b442132b89d0c910b4c8be673)
- doc: update the doc parse logic, support generic types [030676d](https://github.com/gookit/goutil/commit/030676da0275c93e1e67af344c0fd88cccad3b3e)
- doc: generate and update README docs [f342e92](https://github.com/gookit/goutil/commit/f342e92004e670fc2aee7f72d0caa21f4172a347)
- build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 [1e3ea77](https://github.com/gookit/goutil/commit/1e3ea77d248bcecbeb26fcf8d3ef520d2bdd8829)

> GitHub: https://github.com/gookit/goutil