GoPLS Viewer

Home|gopls/cmd/bundle/testdata/src/initial/a.go
1package initial
2
3import "fmt" // this comment should not be visible
4
5// init functions are not renamed
6func init() { foo() }
7
8// Type S.
9type S struct {
10    t
11    u int
12/* multi-line
13comment
14*/
15
16// non-associated comment
17
18/*
19    non-associated comment2
20*/
21
22// Function bar.
23func bar(s *S) {
24    fmt.Println(s.ts.u// comment inside function
25}
26
27// file-end comment
28
MembersX
fmt
init
S
S.u
bar
bar.s
Members
X