mirror of
https://github.com/golang/go
synced 2024-11-06 19:36:30 -07:00
ca36ab2721
Change-Id: I232dbb0b66d690e45079808fd0dbf026c4459400 Reviewed-on: https://go-review.googlesource.com/c/tools/+/169277 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
16 lines
249 B
Go
16 lines
249 B
Go
package highlights
|
|
|
|
import "fmt"
|
|
|
|
type F struct{ bar int }
|
|
|
|
var foo = F{bar: 52} //@highlight("foo", "foo")
|
|
|
|
func Print() {
|
|
fmt.Println(foo) //@highlight("foo", "foo")
|
|
}
|
|
|
|
func (x *F) Inc() { //@highlight("x", "x")
|
|
x.bar++ //@highlight("x", "x")
|
|
}
|