github.com/rmarku/gomarkdoc@v0.0.0-20230517164305-78688ebe4325/testData/docs/anotherFile.go (about) 1 package docs 2 3 // AnotherStruct has methods like [*AnotherStruct.GetField] and also has an 4 // initializer called [NewAnotherStruct]. 5 type AnotherStruct struct { 6 Field string 7 } 8 9 // NewAnotherStruct() makes [*AnotherStruct]. 10 func NewAnotherStruct() *AnotherStruct { 11 return &AnotherStruct{ 12 Field: "test", 13 } 14 } 15 16 // GetField gets [*AnotherStruct.Field]. 17 func (s *AnotherStruct) GetField() string { 18 return s.Field 19 }