Switched to pointer receivers for values
This commit is contained in:
parent
32d81ce98d
commit
d185bd9cc0
17 changed files with 62 additions and 62 deletions
|
@ -8,10 +8,10 @@ type Label struct {
|
|||
Label string
|
||||
}
|
||||
|
||||
func (v Label) String() string {
|
||||
func (v *Label) String() string {
|
||||
return "Label"
|
||||
}
|
||||
|
||||
func (v Label) Type() types.Type {
|
||||
func (v *Label) Type() types.Type {
|
||||
return v.Typ
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue