@@ -31,14 +31,30 @@ keywords:
3131_All links point to <{{ $godoc }}>_
3232
3333This domain exposes {{ .RefCount }} functionalities.
34+ {{- if .HasGenerics }}
35+ Generic assertions are marked with a {{ print " {{" }}% icon icon= " star" color= orange %{{ print " }}" }}
36+ {{- end }}
3437
38+ ` ` ` tree
3539{{- with .Package }}
3640 {{- $enableGenerics := .EnableGenerics }}
3741 {{- range .Functions }}{{/* functions in internal/assertions annotated with "domain:" */}}
3842 {{- if or (not .IsGeneric) ($enableGenerics) }}
3943 {{- if and (not .IsHelper) (not .IsConstructor) }}
44+ - [{{ .GenericName }}](#{{ slugize .GenericName }}) | {{ if .IsGeneric}}star | orange {{ else }}angles-right{{ end }}
45+ {{- end }}
46+ {{- end }}
47+ {{- end }}
48+ {{- end }}
49+ ` ` `
4050
41- ### {{ .Name }}
51+ {{- with .Package }}
52+ {{- $enableGenerics := .EnableGenerics }}
53+ {{- range .Functions }}{{/* functions in internal/assertions annotated with "domain:" */ }}
54+ {{- if or (not .IsGeneric ) ($enableGenerics ) }}
55+ {{- if and (not .IsHelper ) (not .IsConstructor ) }}
56+
57+ ### {{ .GenericName }}{{ if .IsGeneric }} {{ print " {{" }}% icon icon= " star" color= orange %{{ print " }}" }}{{ end }}{#{{ slugize .GenericName }}}
4258 {{- if .IsDeprecated }}
4359
4460{{ print " {{" }}% expand title= " {{ .Name }} [DEPRECATED]" %{{ print " }}" }}
@@ -55,14 +71,14 @@ This domain exposes {{ .RefCount }} functionalities.
5571{{ print " {{" }}% tab title= " {{ .Package }}" style= " secondary" %{{ print " }}" }}
5672| Signature | Usage |
5773| --| --|
58- | [` {{.Package }}.{{ .Name }}({{ params .AllParams }}) {{ returns .Returns }}` ]({{ $godoc }}/{{ .Package }}#{{ .Name }}) | package-level function |
74+ | [` {{.Package }}.{{ .GenericName }}({{ params .AllParams }}) {{ returns .Returns }}` ]({{ $godoc }}/{{ .Package }}#{{ .Name }}) | package-level function |
5975 {{- if .EnableFormat }}
60- | [` {{ .Package }}.{{ .Name }}f (t T, {{ params .Params }}, msg string, args ...any) {{ returns .Returns }}` ]({{ $godoc }}/{{ .Package }}#{{ .Name }}f) | formatted variant |
76+ | [` {{ .Package }}.{{ .GenericName "f" }} (t T, {{ params .Params }}, msg string, args ...any) {{ returns .Returns }}` ]({{ $godoc }}/{{ .Package }}#{{ .Name }}f) | formatted variant |
6177 {{- end }}
62- {{- if .EnableForward }}
78+ {{- if and .EnableForward ( not .IsGeneric ) }}
6379| [` {{ .Package}}.(*{{ .Receiver }}).{{ .Name }}({{ params .Params }}) {{ returns .Returns }}` ]({{ $godoc }}/{{ .Package }}#{{ .Receiver }}. {{ .Name }}) | method variant |
6480 {{- end }}
65- {{- if and .EnableForward .EnableFormat }}
81+ {{- if and .EnableForward .EnableFormat ( not .IsGeneric ) }}
6682| [` {{ .Package }}.(*{{ .Receiver }}).{{ .Name }}f({{ params .Params }}, msg string, args ..any)` ]({{ $godoc }}/{{ .Package }}#{{ .Receiver }}. {{ .Name }}f) | method formatted variant |
6783 {{- end }}
6884{{ print " {{" }}% /tab %{{ print " }}" }}
0 commit comments