gopkg icon indicating copy to clipboard operation
gopkg copied to clipboard

Universal Utilities for Go

Results 46 gopkg issues
Sort by recently updated
recently updated
newest added

### 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 ![img_v2_6b2e0014-ce7d-418c-8e63-00a90481167g](https://github.com/bytedance/gopkg/assets/18524770/6f0806cd-0e05-4ccc-a83d-8d28b8a21660) 预期输出实际的logger.CtxInfo 代码所在行数,参考截图中的差异 ### Actual Behavior 参考截图 ###...

bug

### 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_

enhancement

### Summary asynccache只能基于时间进行过期,如果过期时间配置过长或者load数据过于庞大,会导致OOM的问题。 我想基于asynccache实现一个文件缓存功能,但是在使用过程中发现,一旦文件数据过大,程序会因为OOM问题而直接被系统kill掉。 是否可以像ristretto那样实现一个内存配额限制呢? ### Motivation 建议 ### Explanation _No response_

enhancement

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 [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/net&package-manager=go_modules&previous-version=0.0.0-20221014081412-f15817d10f9b&new-version=0.7.0)](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`. [//]: #...

dependencies

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.

question

### Question 我看代码里的配置是在初始化熔断器时传入的,怎么才能在运行时动态的修改相关配置选项

question

``` 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 ±...