mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-06 09:20:27 +00:00
15 lines
392 B
ReStructuredText
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 %}
|