Documentation ¶
Index ¶
- Variables
- func Add(a, b int) int
- func CamelCase(s string, fn convert) string
- func CatchError(fn func(interface{}) (interface{}, error)) func(interface{}) interface{}
- func CatchErrorForString(fn func(string) (string, error)) func(string) string
- func Chop(s string, d rune) string
- func ConvertArrayForGo(m []string) string
- func ConvertJSONTagForGo(tag string) string
- func ConvertTypeForGo(s string) string
- func ConvertTypeForJS(s string) string
- func ConvertTypeInJSONForGo(s string) string
- func ConvertXORMTagForGo(tag string) string
- func GetColumn(ts *schema.Schema) (cn, ct string, err error)
- func GetKeyFromJSONPath(url string) string
- func GetPrivate(ts *schema.Schema) (bool, error)
- func GetTable(ts *schema.Schema) (tn string, err error)
- func In(e interface{}, s []interface{}) bool
- func JoinTypes(ts schema.PrimitiveTypes, sep string) string
- func LinkTitle(title, method, suffix string) string
- func LowerCamelCase(s string) string
- func LowerSnakeCase(s string) string
- func NotLast(i, len int) bool
- func ParseParam(p string) string
- func Serialize(v interface{}) string
- func Slice(s ...interface{}) []interface{}
- func SnakeCase(s string) string
- func SnakeToLowerCamelCase(s string) string
- func SnakeToUpperCamelCase(s string) string
- func SpaceToUpperCamelCase(s string) string
- func Sub(a, b int) int
- func ToLiteralForGo(input interface{}) string
- func ToLiteralForJS(input interface{}) string
- func ToLowerFirst(s string) string
- func ToPathLikeGorilla(p string) (string, error)
- func ToPathLikeSinatra(p string) (string, error)
- func ToStringLiteral(v interface{}) string
- func ToUpperFirst(s string) string
- func UpperCamelCase(s string) string
- func UpperSnakeCase(s string) string
- type Chunk
- type Ref
- type Token
- type UncaughtCharacterError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnclosedBracketError = errors.New("can not find the pair of bracket")
)
Functions ¶
func CatchError ¶
func CatchError(fn func(interface{}) (interface{}, error)) func(interface{}) interface{}
func CatchErrorForString ¶
func ConvertArrayForGo ¶
func ConvertJSONTagForGo ¶
func ConvertTypeForGo ¶
func ConvertTypeForJS ¶
func ConvertTypeInJSONForGo ¶
func ConvertXORMTagForGo ¶
func GetKeyFromJSONPath ¶
func LowerCamelCase ¶
func LowerSnakeCase ¶
func ParseParam ¶
func SnakeToLowerCamelCase ¶
SnakeToLowerCamelCase is deprecated
func SnakeToUpperCamelCase ¶
SnakeToUpperCamelCase is deprecated
func SpaceToUpperCamelCase ¶
SpaceToUpperCamelCase is deprecated
func ToLiteralForGo ¶
func ToLiteralForGo(input interface{}) string
func ToLiteralForJS ¶
func ToLiteralForJS(input interface{}) string
func ToPathLikeGorilla ¶
func ToPathLikeSinatra ¶
func ToStringLiteral ¶
func ToStringLiteral(v interface{}) string
func UpperCamelCase ¶
func UpperSnakeCase ¶
Types ¶
type Token ¶
func BuildURLToken ¶
type UncaughtCharacterError ¶
func (UncaughtCharacterError) Error ¶
func (err UncaughtCharacterError) Error() string
Click to show internal directories.
Click to hide internal directories.