Bruce Du
Bruce Du
看到`64`时,个人觉得`带参数的装饰器`指的应该是装饰器本身可以传参的情况: ``` def dec(text): def decorator(func): def wrapper(*args, **kw): print(text) return func(*args, **kw) return wrapper return decorator @dec('Hello') def func(): pass ```
### Name and Version bitnami/postgresql-repmgr:11.13.0-debian-10-r57 ### What architecture are you using? amd64 ### What steps will reproduce the bug? We use a Golang program to build k8s pods and svc...
Description =========== I configured consumer with `allow.auto.create.topics` and consumed Kafka, but it doesn't work. Kafka did not crreate non-existed topics automatically and confluent-kafka-go returned error: `Broker: Unknown topic or partition:...
API Version: k8s.io/api v0.29.1 Golang Version: 1.21 I wrote a function to build `appv1.Deployment` manually, just like below: ```go func buildDeployment(cpu, mem string) appsv1.Deployment { replicas := new(int32) *replicas =...
I noticed issue #135 , so I added a function `NewGeneric[K comparable, V any]()` to create a generic type Key map. I also wrote 2 tests and 2 benchmark test...