diff --git a/autoapi/templates/go/base_member.rst b/autoapi/templates/go/base_member.rst index b518245..4aaf111 100644 --- a/autoapi/templates/go/base_member.rst +++ b/autoapi/templates/go/base_member.rst @@ -13,3 +13,10 @@ {%- if obj.returns %} :rtype: {{ obj.returns.id }} {%- endif %} + + {% if obj.children -%} + {%- for child in obj.children|sort %} + {% macro render_child() %}{{ child.render() }}{% endmacro %} + {{ render_child()|indent(4) }} + {%- endfor %} + {%- endif %}