Documentation ¶
Index ¶
- func CreateCaptchaCodeBytes(SessionCaptcha string) []byte
- func DecodeShareKey(ShareKey string) (UserID, ProductID uint64)
- func EncodeShareKey(UserID, ProductID uint64) string
- func GetFullPath(Request *http.Request) string
- func GetFullUrl(Request *http.Request) string
- func GetHost(Request *http.Request) string
- func GetIP(context *gweb.Context) string
- func IsMobile(context *gweb.Context) bool
- func JSONToStruct(body string, target interface{}) error
- func RequestBodyToJSON(body io.ReadCloser, target interface{}) error
- func Rounding45(rounding float64, prec int) float64
- func SignSha1(m string) string
- func StructToJSON(obj interface{}) string
- func StructToMap(obj interface{}) map[string]interface{}
- type Hashids
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCaptchaCodeBytes ¶
func DecodeShareKey ¶
func EncodeShareKey ¶
func GetFullPath ¶
func GetFullUrl ¶
func JSONToStruct ¶
func RequestBodyToJSON ¶
func RequestBodyToJSON(body io.ReadCloser, target interface{}) error
func Rounding45 ¶
func StructToJSON ¶
func StructToJSON(obj interface{}) string
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
Types ¶
type Hashids ¶
type Hashids struct { }
func (Hashids) DecodeShareKey ¶
func (Hashids) EncodeShareKey ¶
Click to show internal directories.
Click to hide internal directories.