Documentation ¶
Index ¶
- Variables
- func CloneIntoGitHome(url, branch string) (dir string, err error)
- func ComponentName(api *spec.ApiSpec) string
- func ContainsAny(s string, runes ...rune) bool
- func ContainsWhiteSpace(s string) bool
- func Copy(src, dst string) (int64, error)
- func FormatCode(code string) string
- func IsEmptyStringOrWhiteSpace(s string) bool
- func IsLowerCase(r rune) bool
- func IsTemplateVariable(text string) bool
- func IsUpperCase(r rune) bool
- func Rand() string
- func RandId() string
- func Randn(n int) string
- func RemoveComment(line string) string
- func Seed(seed int64)
- func TemplateVariable(text string) string
- func ToCamelCase(s string) string
- func ToLastLower(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 TrimWhiteSpace(s string) string
- 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 ¶
View Source
var WhiteSpace = []rune{'\n', '\t', '\f', '\v', ' '}
Functions ¶
func CloneIntoGitHome ¶
func ComponentName ¶
ComponentName returns component name for typescript
func ContainsAny ¶
func ContainsWhiteSpace ¶
func FormatCode ¶
func IsTemplateVariable ¶
IsTemplateVariable 函数会返回 true,如果文本是一个模板变量 文本必须以点号开头,并且是一个有效的模板。
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
func TrimWhiteSpace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.