- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SettableInt (0.15 sec)
-
test/typeparam/settable.go
type SettableInt int func (p *SettableInt) Set(s string) { i, err := strconv.Atoi(s) if err != nil { panic(err) } *p = SettableInt(i) } type SettableString struct { s string } func (x *SettableString) Set(s string) { x.s = s } func main() { s := fromStrings1[SettableInt, *SettableInt]([]string{"1"}) if len(s) != 1 || s[0] != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:48:58 UTC 2022 - 2.7K bytes - Viewed (0)