Oops, NewButton() should return Button, not the backend type. Fixed.
This commit is contained in:
parent
214dc6cd5c
commit
fa5b2012d0
|
@ -25,6 +25,6 @@ type Button interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewButton creates a new Button with the given label text.
|
// NewButton creates a new Button with the given label text.
|
||||||
func NewButton(text string) *button {
|
func NewButton(text string) Button {
|
||||||
return newButton(text)
|
return newButton(text)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue