Add line breaks and whitespace to avoid long horizontal scrolls for Python constructor/function arguments. Also, include the new ResourceArgs constructor overload.
12 lines
785 B
Cheetah
12 lines
785 B
Cheetah
{{ define "param_separator" }}<span class="p">,</span> {{ end }}
|
|
|
|
{{ define "py_param_separator" }}<span class="p">,</span>
|
|
{{ .Indent }}{{ end }}
|
|
|
|
{{ define "go_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p"> {{ .OptionalFlag }}</span>{{ template "linkify_param" .Type }}{{ end }}
|
|
|
|
{{ define "ts_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p">{{ .OptionalFlag }}:</span> {{ template "linkify_param" .Type }}{{ end }}
|
|
|
|
{{ define "csharp_formal_param" }}{{ template "linkify_param" .Type }}<span class="p">{{ .OptionalFlag }} </span><span class="nx">{{ .Name }}{{ .DefaultValue }}{{ end }}
|
|
|
|
{{ define "py_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p">:</span> {{ template "linkify_param" .Type }}{{ .DefaultValue }}{{ end }}
|