goutil
goutil copied to clipboard
💪 Helper Utils(700+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. Go 常用的一些工具函数:数字...
**System (please complete the following information):** - OS: `linux, macOS` - GO Version: `1.18` - Pkg Version: `0.5.5` **Describe the bug** ```go &fatal error: concurrent map read and map write...
Diff get a map record the difference between the two maps. The calculation is based on a map change to b map if deleted some field in a map then...
A recent task was to compare two json strings and find the field that had been modified. I converted them into two `map[string]interface` data and write a func diff(a, b...
Functions like `Reverse` ...to redo might be better [related issue](https://github.com/golang/go/issues/43651)
Example: ``` type T1 struct { T2 *T2 T3 *T3 } type T2 struct { Name2 string } type T3 struct { Name3 string } func main() { t1 :=...
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0. Commits 914b96c windows: support ill-formed UTF-16 in UTF16PtrToString 511ec84 Revert "windows: support nil done parameter in ReadFile and WriteFile" 628365d windows: support nil done...
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.16.0 to 0.17.0. Commits 353276a go.mod: update golang.org/x dependencies See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as...
RelatedTo: https://github.com/gookit/goutil/issues/155
**System (please complete the following information):** - OS: `windows` - GO Version: `1.19` - Pkg Version: `v0.6.12` **Describe the bug** Always get string like this: `jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjpp`, `11111eeeeeeeeeeeeeeeeeeeeeeeeeee` **To Reproduce** Here...
**System (please complete the following information):** - OS: `linux` - GO Version: `1.20` - Pkg Version: `0.6.12` **Describe the bug** When attempting to access nested map keys using dot notation,...