Documentation ¶
Index ¶
- func ClearAndOpenFile(fpath string) (*os.File, error)
- func ComponentName(api *spec.ApiSpec) string
- func Copy(src, dst string) (int64, error)
- func DecomposeType(t string) (result []string, err error)
- func GetAllTypes(api *spec.ApiSpec, route spec.Route) []spec.Type
- func GetAnnotationValue(annos []spec.Annotation, key, field string) (string, bool)
- func GetLocalTypes(api *spec.ApiSpec, route spec.Route) []spec.Type
- func GetSharedTypes(api *spec.ApiSpec) []spec.Type
- func IsLowerCase(r rune) bool
- func IsUpperCase(r rune) bool
- func LowerFirst(s string) string
- func MaybeCreateFile(dir, subdir, file string) (fp *os.File, created bool, err error)
- func TagLookup(tag, key string) (value string, ok bool)
- 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 UpperFirst(s string) string
- func WrapErr(err error, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentName ¶
func DecomposeType ¶
func GetAnnotationValue ¶
func GetAnnotationValue(annos []spec.Annotation, key, field string) (string, bool)
func IsLowerCase ¶
func IsUpperCase ¶
func LowerFirst ¶
func MaybeCreateFile ¶
func ToCamelCase ¶
func ToLowerCase ¶
func ToSnakeCase ¶
func ToUpperCase ¶
func UpperFirst ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.