Merge branch 'master' of https://github.com/wuhewuhe/bybit.go.api
This commit is contained in:
commit
39b0d3bd15
|
@ -53,6 +53,14 @@ func WithBaseURL(baseURL string) ClientOption {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ServerResponse struct {
|
||||||
|
RetCode int `json:"retCode"`
|
||||||
|
RetMsg string `json:"retMsg"`
|
||||||
|
Result interface{} `json:"result"`
|
||||||
|
RetExtInfo struct{} `json:"retExtInfo"`
|
||||||
|
Time int64 `json:"time"`
|
||||||
|
}
|
||||||
|
|
||||||
func PrettyPrint(i interface{}) string {
|
func PrettyPrint(i interface{}) string {
|
||||||
s, _ := json.MarshalIndent(i, "", "\t")
|
s, _ := json.MarshalIndent(i, "", "\t")
|
||||||
return string(s)
|
return string(s)
|
||||||
|
|
Loading…
Reference in New Issue