{"modulePath":"github.com/acoderup/goctl","version":"v1.1.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Functions\n\n```go\nfunc ComponentName(api *spec.ApiSpec) string\n```\nComponentName returns component name for typescript\n\n```go\nfunc Copy(src, dst string) (int64, error)\n```\nCopy calls io.Copy if the source file and destination file exists\n\n```go\nfunc IsLowerCase(r rune) bool\n```\nIsLowerCase returns true if the rune in a-z\n\n```go\nfunc IsUpperCase(r rune) bool\n```\nIsUpperCase returns true if the rune in A-Z\n\n```go\nfunc MaybeCreateFile(dir, subdir, file string) (fp *os.File, created bool, err error)\n```\nMaybeCreateFile creates file if not exists\n\n```go\nfunc RemoveComment(line string) string\n```\nRemoveComment filters comment content\n\n```go\nfunc ToCamelCase(s string) string\n```\nToCamelCase returns a copy string by converting snake case into camel case\n\n```go\nfunc ToLower(s string) string\n```\nToLower returns a copy string by converting it into lower\n\n```go\nfunc ToLowerCase(r rune) rune\n```\nToLowerCase converts rune into lower case\n\n```go\nfunc ToSnakeCase(s string) string\n```\nToSnakeCase returns a copy string by converting camel case into snake case\n\n```go\nfunc ToUpper(s string) string\n```\nToUpper returns a copy string by converting it into upper\n\n```go\nfunc ToUpperCase(r rune) rune\n```\nToUpperCase converts rune into upper case\n\n```go\nfunc UnExport(text string) bool\n```\nUnExport converts the first letter into lower case\n\n```go\nfunc UpperFirst(s string) string\n```\nUpperFirst converts s\\[0] into upper case\n\n```go\nfunc WrapErr(err error, message string) error\n```\nWrapErr wraps an error with message\n\n```go\nfunc WriteIndent(writer io.Writer, indent int)\n```\nWriteIndent writes tab spaces\n\n","path":"github.com/acoderup/goctl/api/util","name":"util","synopsis":"","isRedistributable":true}
