gopkg
gopkg copied to clipboard
Universal Utilities for Go
### summary 1. validate invalid gogc from env. 2. how to get the memory size method in the container
### Operating System mac ### Go Version go version go1.21.0 darwin/arm64 ### Package Version latest ### Affected Packages gopkg/util/logger ### Expected Behavior  预期输出实际的logger.CtxInfo 代码所在行数,参考截图中的差异 ### Actual Behavior 参考截图 ###...
### Summary https://github.com/bytedance/gopkg/blob/614d0af6619bf612a797e07e6a1ac1533f529491/cloud/circuitbreaker/interface.go#L20C8-L20C8 circuitbreaker.Panel 接口可以添加一个 State(key string) State 的方法吗 ### Motivation 在某些场景下,我希望获取某个key关联的breaker的状态,来做不同的动作,比如进行重新进行调度 ### Explanation _No response_
### Summary asynccache只能基于时间进行过期,如果过期时间配置过长或者load数据过于庞大,会导致OOM的问题。 我想基于asynccache实现一个文件缓存功能,但是在使用过程中发现,一旦文件数据过大,程序会因为OOM问题而直接被系统kill掉。 是否可以像ristretto那样实现一个内存配额限制呢? ### Motivation 建议 ### Explanation _No response_
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20221014081412-f15817d10f9b to 0.7.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...
Hello! I hope you are doing well! We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has...
### Question ATT. At least the range of random floats should be given.
``` name old time/op new time/op delta All/SaveMetaInfoToMap_10-12 3.50µs ± 0% 2.18µs ± 0% -37.77% (p=1.000 n=1+1) All/SaveMetaInfoToMap_20-12 7.04µs ± 0% 4.59µs ± 0% -34.78% (p=1.000 n=1+1) All/SaveMetaInfoToMap_50-12 16.5µs ±...