diff --git a/example/test/main.go b/example/test/main.go index 7e4857d..c4cdd4a 100644 --- a/example/test/main.go +++ b/example/test/main.go @@ -34,7 +34,7 @@ func main() { logs.PrintErr(err) for _, v := range resp { - logs.Debug(*v) + logs.Debugf("%#v\n", v) } select {} diff --git a/protocol/model_k.go b/protocol/model_k.go index be847a4..0272f95 100644 --- a/protocol/model_k.go +++ b/protocol/model_k.go @@ -13,7 +13,7 @@ func (this Price) Float64() float64 { } func (this Price) String() string { - return fmt.Sprintf("%.2f 元", this.Float64()) + return fmt.Sprintf("%0.2f 元", this.Float64()) } type PriceLevel struct {