goutil icon indicating copy to clipboard operation
goutil copied to clipboard

Golang common tool functions and components.

Results 4 goutil issues
Sort by recently updated
recently updated
newest added

如果go版本号是1.18beta,versioning.Parse(goVersion)解析不出后面的beta,会返回一个error,这会触发后面的panic ``` go version go version go1.18beta2 windows/amd64 ``` https://github.com/henrylee2cn/goutil/blob/5b5425bff75ce88e91a6122e91fb7f0d751b8d16/tpack/tpack.go#L20-L27

@henrylee2cn 1.这里workshop相当于在100万个协程中分别执行,和不使用workshop有啥区别? worker并不是在一个协程执行的啊? https://github.com/henrylee2cn/goutil/blob/5b5425bff75ce88e91a6122e91fb7f0d751b8d16/pool/workshop_test.go#L73-L83 2.workshop和直接使用协程对比 === RUN TestGoChan --- PASS: TestGoChan (0.30s) workshop_test.go:35: pool_size:50, requests:100000, one_logic_cost:10ms, total_cost:295ms, QPS:338983 === RUN TestChanPool --- PASS: TestChanPool (20.04s) workshop_test.go:35: pool_size:50, requests:100000, one_logic_cost:10ms, total_cost:20.043s,...

```shell package *** imports *** imports *** imports github.com/henrylee2cn/goutil ../../../../../pkg/mod/github.com/henrylee2cn/[email protected]/encrypt.go:17:2: use of internal package github.com/andeya/goutil/internal/ameda not allowed ``` **Boom!**