Documentation ¶
Index ¶
- func ComponentName(api *spec.ApiSpec) string
- func Copy(src, dst string) (int64, error)
- 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 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.