sphinx-autoapi/autoapi/templates/go/base_member.rst
2015-05-29 15:48:58 -07:00

15 lines
392 B
ReStructuredText

.. go:{{ obj.ref_type }}:: {{ obj.name }}
{% macro render() %}{{ obj.docstring }}{% endmacro %}
{{ render()|indent(8) }}
{%- for param in obj.parameters %}
:param {{ param.name }}: {{ param.desc }}
{%- if param.type %}
:type {{ param.name }}: {{ param.type }}
{%- endif %}
{%- endfor %}
{%- if obj.returns %}
:rtype: {{ obj.returns.id }}
{%- endif %}