Documentation ¶
Index ¶
- func FromString(value string, ntype string) (reflect.Value, error)
- func SetField(obj interface{}, name string, value interface{}) error
- func ToString(v interface{}) string
- func ToStruct(m map[string]interface{}, s interface{}) error
- type ImgCover
- type StrConver
- func (m StrConver) Bool() (bool, error)
- func (m StrConver) Float32() (float32, error)
- func (m StrConver) Float64() (float64, error)
- func (m StrConver) Hex() (uint64, error)
- func (m StrConver) Int() (int, error)
- func (m StrConver) Int16() (int16, error)
- func (m StrConver) Int32() (int32, error)
- func (m StrConver) Int64() (int64, error)
- func (m StrConver) Int8() (int8, error)
- func (m StrConver) String() string
- func (m StrConver) Time() (time.Time, error)
- func (m StrConver) Uint() (uint, error)
- func (m StrConver) Uint64() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromString ¶
FromString 类型转换:string类型转其他类型
Types ¶
type ImgCover ¶
type ImgCover struct{}
func (*ImgCover) GIFToBase64 ¶
GIFToBase64 gif to base64
func (*ImgCover) JPEGToBase64 ¶
JPEGToBase64 jpeg to base64
Click to show internal directories.
Click to hide internal directories.