Fix it
Pointer vs. value receivers are... interesting.
This commit is contained in:
@ -15,6 +15,7 @@ type SmokeTestCollection struct {
|
||||
Things int `cardsim:"stat"`
|
||||
MoreThings int `cardsim:"hidden"`
|
||||
FloatyThings float64 `cardsim:"round1"`
|
||||
Label string `cardsim:"stat"`
|
||||
}
|
||||
|
||||
func (c *SmokeTestCollection) Average() float64 {
|
||||
|
@ -28,6 +28,10 @@ func main() {
|
||||
Name: "Flavor",
|
||||
Value: "Lemon",
|
||||
},
|
||||
Things: 5,
|
||||
MoreThings: 9,
|
||||
FloatyThings: 123.456,
|
||||
Label: "whee",
|
||||
},
|
||||
)
|
||||
p.Name = "Dave"
|
||||
|
Reference in New Issue
Block a user