v0.7.1
Change Log
Fixed
- 🐛 fix: maputil - TryAnyMap convert error on input no-string key map 095d51e
Feature
- ✨ feat: timex - Enhanced ToDuration method to support negative numbers and multiple time. eg: -1.5h, 2d3h, 2hour33min a9069e6
- ✨ feat: fsutil - add new func: NameNoExt get filename without ext 95581b1
- ✨ feat: maputil - add ToL2StringMap: convert map[string]any to map[string]map[string]string 1b4a87b
- ✨ feat: testutil - add StrVarRenderer implements like shell vars renderer 114d773
- ✨ feat: maputil - Data add new method: One, StrOne, StringsOne for try get value by multi key a877c56
- ✨ feat: maputil - add func: FirstKey for get first key string. 922d3cc
- ✨ feat: strutil - add func: IContainsOne, IContainsAll for support ignore-case check string. 6eb1356
- ✨ feat: strutil - add new func: JoinComma quick join strings by comma 3d40ebb
- ✨ feat: maputil - add func: AnyToStrMap for convert any to string-map 6f1a47f
- ✨ feat: maputil - Data add method: BoolOne, AnyMap for get value 721b544
- ✨ feat: maputil - add new type: L2StrMap and add new func: MergeL2StrMap da6c2b0
- ✨ feat: maputil - add new func: SliceToSMap, SliceToMap, SliceToTypeMap 9b99167
- ✨ feat: maputil - SMap add new method: StrOne for get first value by multi keys 993edb6
- ✨ feat: strutil - add new func: IsVarName for check varname string 34194ee
- ✨ feat: sysutil - add new func: ToEnvPATH join strings to PATH string 66d1416
- ✨ feat: sysutil/cmdr - Cmd add new field PrintLine for print show cmdline a14f77b
- ✨ feat: reflects - add func: TryAnyMap for convert any map to string-any map f839da3
- ✨ feat: structs - StructToMap add new options: IgnoreEmpty, UserFunc 001c4da
- ✨ feat: structs - SetValues add new options: BeforeSetFn hook 4a8b758
Update
- 👔 up: env, strutil - Extract the common ENV lines parse method to the internal package 2b5a873
- 👔 up: maputil - rename SMap to StrMap 2caae27
- 👔 up: jsonutil - add new func: DecodeFile bbb7603
- 👔 up: sysutil add const OsName, goutil add func: IfElseFn 65f84e5
Other
- 📝 doc: update and add some docs for structs, testutil, x/finder 4f00e86
- 💚 test: fix the internal ParseEnvLines in some case error e693ecd
- 👔 chore: update import, rename some vars 9e89bd1
- 👔 chore: arrutil - update the ToStrings logic 7847933
- 👔 chore: errorx - add alias method Rf for Rawf 6109707
- 💡 chore: update or fix some func comments 583c720
- 💡 chore: update some comments and code style 7c15564
- ⬆️ dep: update gh checkout action to v5 b12ec64
- 📝 doc: update and re-generate README docs 18a8667
Full Changelog: v0.7.0...v0.7.1