mariotoffia / goasciidoc

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

Support for rendering structs as JSON #5

Open mariotoffia opened 3 years ago

mariotoffia commented 3 years ago

Allow for rendering a sample JSON document based on go structs. In addition interpret json tag.

type DsBuildingMeta struct {
    TimeZone DsMetaTimeStamp `json:"tz,omitempty"`
    Sensors map[string]DsMetaTimeStamp `json:"sensors,omitempty"`
}
alanconway commented 5 months ago

I am interested in doing this but I have slightly different situation: I'm not using adoc in golang comments (stick to standard godoc markup) though I am producing adoc generated output. I'm looking at different projects. Yours is IMO way better structured as a general-purpose doc generator than the godoc code even without the adoc orientation. Any thoughts about splitting your library into a generic doc generator with support for both asciidoc and godoc markup?