1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix types for SPF_BUILDER (#2487)

Co-authored-by: str4d <4993799+str4d@users.noreply.github.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Jed Fox
2023-08-15 14:45:31 -07:00
committed by GitHub
parent 1d9646d4ff
commit 38b0be5d3f
3 changed files with 1071 additions and 1066 deletions

View File

@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"regexp" "regexp"
"sort"
"strings" "strings"
"golang.org/x/text/cases" "golang.org/x/text/cases"
@ -187,6 +188,10 @@ func generateFunctionTypes() (string, error) {
} }
} }
sort.Slice(funcs, func(i, j int) bool {
return funcs[i].Name < funcs[j].Name
})
content := "" content := ""
for _, f := range funcs { for _, f := range funcs {
content += f.String() content += f.String()

File diff suppressed because it is too large Load Diff

View File

@ -16,8 +16,8 @@ parameter_types:
overhead1: string? overhead1: string?
raw: string? raw: string?
ttl: Duration? ttl: Duration?
txtMaxSize: string[] txtMaxSize: number?
parts: number? parts: string[]
flatten: string[]? flatten: string[]?
--- ---