sphinx-autoapi/autoapi/templates/go/base_member.rst

15 lines
392 B
ReStructuredText
Raw Normal View History

2015-05-29 22:02:27 +00:00
.. go:{{ obj.ref_type }}:: {{ obj.name }}
2015-05-29 22:48:58 +00:00
{% macro render() %}{{ obj.docstring }}{% endmacro %}
{{ render()|indent(8) }}
2015-05-29 22:02:27 +00:00
{%- 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 %}