-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
key 为什么不支持int #135
Comments
mark |
可能是因为 如果要使用 type Integer int
func (i Integer) String() string {
return strconv.Itoa(int(i))
}
func main() {
var intMap = camp.NewStringer[Integer, string]()
intMap.Set(1, "1")
val, ok := intMap.Get(1)
fmt.Println(val, ok)
} |
增加NewGeneric[K comparable, V any]它不香吗?绕来绕去的。 |
提PR的机会这不就来了吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: