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

16 lines
438 B
ReStructuredText
Raw Normal View History

2015-05-29 22:02:27 +00:00
.. go:{{ obj.ref_type }}:: {{ obj.name }}
2015-05-31 01:32:43 +00:00
{%- if obj.type == 'func' -%}
({{ obj.parameters|map(attribute='name')|join(', ') }})
{%- endif %}
2015-05-29 22:02:27 +00:00
{% macro render() %}{{ obj.docstring }}{% endmacro %}
{{ render()|indent(4) }}
2015-05-31 01:32:43 +00:00
{% for param in obj.parameters %}
:param {{ param.name }}:
2015-05-29 22:02:27 +00:00
:type {{ param.name }}: {{ param.type }}
{%- endfor %}
{%- if obj.returns %}
:rtype: {{ obj.returns.id }}
{%- endif %}