Documentation ¶
Index ¶
- func DeepCopy(in, out interface{})
- func GobDecode(encoded []byte, i interface{}) error
- func GobEncode(obj interface{}) ([]byte, error)
- func IsBlank(v reflect.Value) bool
- func SetCookie(w http.ResponseWriter, target map[string]string, args ...interface{}) *http.Cookie
- type Date
- type DateTime
- type M
- type Slice
- func (s Slice) CheckDigital(digital int) bool
- func (s Slice) CheckItem(item string) bool
- func (s Slice) CheckMustDigital(digital int, digitals ...int) bool
- func (s Slice) CheckMustItem(item string, items ...string) bool
- func (s Slice) CheckPartDigital(digital int, digitals ...int) bool
- func (s Slice) CheckPartItem(item string, items ...string) bool
- func (s Slice) ConvBool() []bool
- func (s Slice) ConvInt() []int
- func (s Slice) ConvObjectID() []primitive.ObjectID
- func (s Slice) ObjectIDToStrings() []string
- func (s Slice) SliceToMap(is ...interface{}) M
- type Strings
- func (s Strings) GenerateSecret(secret string) string
- func (s Strings) Md5() string
- func (s Strings) PluralizeString() string
- func (s Strings) RandMixed(width int) string
- func (s Strings) RandNumber(width int) string
- func (s Strings) RandString(width int) string
- func (s Strings) SnakeCasedName() string
- func (s Strings) SnakeCasedNameByDelimiterStyle(delimiterStyle rune) string
- func (s Strings) String() string
- func (s Strings) TitleCasedName() string
- func (s Strings) TitleCasedNameByDelimiterStyle(delimiterStyle rune) string
- func (s Strings) TrimSide(cutset string) string
- type Struct
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Slice ¶
type Slice struct {
I interface{}
}
func (Slice) CheckDigital ¶
func (Slice) ConvObjectID ¶
func (Slice) ObjectIDToStrings ¶
type Strings ¶
type Strings string
func (Strings) GenerateSecret ¶
func (Strings) PluralizeString ¶
func (Strings) RandNumber ¶
func (Strings) RandString ¶
func (Strings) SnakeCasedName ¶
convert like this: "HelloWorld" to "hello_world"
func (Strings) SnakeCasedNameByDelimiterStyle ¶
delimiterStyle: '-' convert like this: "HelloWorld" to "hello-world"
func (Strings) TitleCasedName ¶
convert like this: "hello_world" to "HelloWorld"
func (Strings) TitleCasedNameByDelimiterStyle ¶
delimiterStyle: '-' convert like this: "hello-world" to "HelloWorld"
type Struct ¶
type Struct struct { I interface{} // contains filtered or unexported fields }
func (Struct) CompatibleTag ¶
func (Struct) GetTypeName ¶
func (Struct) RawStructToMap ¶
convert struct to map s must to be struct, can not be a pointer
func (Struct) StructName ¶
func (Struct) StructToSnakeKeyMap ¶
convert struct to map but struct's field name to snake cased map key
Click to show internal directories.
Click to hide internal directories.