improve export data as hex for gres

This commit is contained in:
john
2019-09-01 21:34:15 +08:00
parent 15a6680833
commit 6ccc4d119f
7 changed files with 21 additions and 20 deletions

View File

@ -1,12 +1,13 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"fmt"
"github.com/gogf/gf/internal/utilbytes"
)
func main() {
v := g.NewVar(1)
glog.Error(v.String())
glog.Errorfln("error")
b := []byte{48, 49, 50, 51, 52, 53}
fmt.Println(string(b))
fmt.Println([]byte("\xff\xff"))
fmt.Printf(utilbytes.Export(b))
}