2018-12-14 13:46:12 -07:00
|
|
|
package a
|
|
|
|
|
2019-04-02 10:06:03 -06:00
|
|
|
import "fmt"
|
|
|
|
|
2018-12-14 13:46:12 -07:00
|
|
|
type Thing struct { //@Thing
|
|
|
|
Member string //@Member
|
|
|
|
}
|
|
|
|
|
|
|
|
var Other Thing //@Other
|
|
|
|
|
|
|
|
func Things(val []string) []Thing { //@Things
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t Thing) Method(i int) string { //@Method
|
|
|
|
return t.Member
|
|
|
|
}
|
|
|
|
|
|
|
|
func useThings() {
|
|
|
|
t := Thing{} //@mark(aStructType, "ing")
|
|
|
|
fmt.Print(t.Member) //@mark(aMember, "ember")
|
|
|
|
fmt.Print(Other) //@mark(aVar, "ther")
|
|
|
|
Things() //@mark(aFunc, "ings")
|
|
|
|
t.Method() //@mark(aMethod, "eth")
|
|
|
|
}
|
|
|
|
|
|
|
|
/*@
|
2019-04-29 12:57:27 -06:00
|
|
|
godef(aStructType, Thing)
|
|
|
|
godef(aMember, Member)
|
|
|
|
godef(aVar, Other)
|
|
|
|
godef(aFunc, Things)
|
|
|
|
godef(aMethod, Method)
|
2018-12-14 13:46:12 -07:00
|
|
|
|
|
|
|
//param
|
|
|
|
//package name
|
|
|
|
//const
|
|
|
|
//anon field
|
|
|
|
|
|
|
|
*/
|