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

15 lines
397 B
ReStructuredText
Raw Normal View History

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