Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GoStub *template.Template TSStub *template.Template TSSWRHooks *template.Template )
View Source
var FuncMaps = map[string]any{ "strQuote": func(elems []string) []string { out := make([]string, len(elems)) for i, e := range elems { out[i] = fmt.Sprintf("%q", e) } return out }, "strJoin": strings.Join, "strSplit": strings.Split, "strReplace": strings.ReplaceAll, "toUpper": strings.ToUpper, "toLower": strings.ToLower, "toTitle": strings.ToTitle, "toUTF8": strings.ToValidUTF8, "lowerCamelCase": utils.ToLowerCamel, "camelCase": utils.ToCamel, "kebabCase": utils.ToKebab, "snakeCase": utils.ToSnake, "screamSnakeCase": utils.ToScreamingSnake, "randomID": utils.RandomID, "randomDigit": utils.RandomDigit, "randomInt": utils.RandomInt64, "goType": goType, "tsType": tsType, "tsReplacePathParams": tsReplacePathParams, "strAppend": strAppend, "strEmptySlice": strEmptySlice, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.