Documentation ¶
Index ¶
- func ComponentName(api *spec.ApiSpec) string
- func ConvertTagToComment(tagString string) ([]string, error)
- func ConvertValidateTagToSwagger(tagData string) ([]string, error)
- func Copy(src, dst string) (int64, error)
- func ExtractValidateString(data string) string
- func HasCustomValidation(data string) bool
- func IsLowerCase(r rune) bool
- func IsUpperCase(r rune) bool
- func MaybeCreateFile(dir, subdir, file string) (fp *os.File, created bool, err error)
- func RemoveComment(line string) string
- func ToCamelCase(s string) string
- func ToLower(s string) string
- func ToLowerCase(r rune) rune
- func ToSnakeCase(s string) string
- func ToUpper(s string) string
- func ToUpperCase(r rune) rune
- func UnExport(text string) bool
- func UpperFirst(s string) string
- func WrapErr(err error, message string) error
- func WriteIndent(writer io.Writer, indent int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentName ¶
ComponentName returns component name for typescript
func ConvertTagToComment ¶
ConvertTagToComment converts validator tag to comments.
func ConvertValidateTagToSwagger ¶
ConvertValidateTagToSwagger converts the validator tag to swagger comments.
func ExtractValidateString ¶
ExtractValidateString extracts the validator's string.
func HasCustomValidation ¶
HasCustomValidation returns true if the comment has validations.
func MaybeCreateFile ¶
MaybeCreateFile creates file if not exists
func ToCamelCase ¶
ToCamelCase returns a copy string by converting snake case into camel case
func ToSnakeCase ¶
ToSnakeCase returns a copy string by converting camel case into snake case
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.