docs: fix invalid godoc for generated settings methods

This commit is contained in:
Mateusz Filipowicz
2025-03-02 22:27:49 +01:00
parent a5955a6358
commit bdc73a9811
41 changed files with 82 additions and 82 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ func (c *client) list{{ .StructName }}(ctx context.Context, site string) ([]{{ .
{{- end }}
{{ if .IsSetting }}
// Update {{ .StructName }} Experimental! This function is not yet stable and may change in the future.
// Get{{ .StructName }} Experimental! This function is not yet stable and may change in the future.
func (c *client) Get{{ .StructName }}(ctx context.Context, site string) (*{{ .StructName }}, error) {
s, f, err := c.GetSetting(ctx, site, {{ .StructName }}Key)
if err != nil {
@@ -148,7 +148,7 @@ func (c *client) create{{ .StructName }}(ctx context.Context, site string, d *{{
{{- end }}
{{ if .IsSetting }}
// Update {{ .StructName }} Experimental! This function is not yet stable and may change in the future.
// Update{{ .StructName }} Experimental! This function is not yet stable and may change in the future.
func (c *client) Update{{ .StructName }}(ctx context.Context, site string, s *{{ .StructName}}) (*{{ .StructName }}, error) {
s.Key = {{ .StructName }}Key
result, err := c.SetSetting(ctx, site, {{ .StructName }}Key, s)