mariotoffia / goasciidoc

Document your go code using asciidoc instead of godoc
Apache License 2.0
17 stars 1 forks source link

Support for nested structs #6

Closed mariotoffia closed 3 years ago

mariotoffia commented 3 years ago

E.g. this setup will not extract the fields and documentation:

type Baah struct {
  Foo struct {
    // Baz is a property
    Baz string
  }

The Decl for Baah is now

Foo struct {
  // Baz is a property
  Baz string
}

and that is not correct. It SHOULD be

Baah.Foo.Baz Fax is a property

and the Foo Struct should be

type Baah struct {
  Foo struct {
   Baz string
  }

This requires more job when parsing the structs...