Documentation ¶
Index ¶
- Constants
- Variables
- func AnyNum2Float64(in interface{}) (out float64, err error)
- func DecodeSinaData(rawData string) (interface{}, error)
- func EasyGet(target string, reqParam map[string]interface{}, trim *TrimBound, ...) error
- func EasyPost(target string, payload map[string]interface{}, header map[string]string, ...) error
- func GetPECrawlToken() (string, error)
- func ParseBodyWithTrimAsJSON(body io.ReadCloser, trim *TrimBound, result interface{}) error
- func RewriteStructJSON(input interface{}) (result interface{}, err error)
- func String(value interface{}) string
- func UrlParamConstruct(target string, param map[string]interface{}) string
- type CustomDate
- type TolerantFloat
- type TrimBound
Constants ¶
View Source
const DateLayout = "2006-01-02"
Variables ¶
Functions ¶
func AnyNum2Float64 ¶
func DecodeSinaData ¶
func GetPECrawlToken ¶
func ParseBodyWithTrimAsJSON ¶
func ParseBodyWithTrimAsJSON(body io.ReadCloser, trim *TrimBound, result interface{}) error
func RewriteStructJSON ¶
func RewriteStructJSON(input interface{}) (result interface{}, err error)
func UrlParamConstruct ¶
Types ¶
type CustomDate ¶
type CustomDate string
func (*CustomDate) UnmarshalJSON ¶
func (c *CustomDate) UnmarshalJSON(b []byte) error
type TolerantFloat ¶
type TolerantFloat float64
func (*TolerantFloat) UnmarshalJSON ¶
func (t *TolerantFloat) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.