golang str to hex
package main import ( "encoding/hex" "fmt" ) func main() { a := "4769676162697445746865726E6574302F302F323400" bs, err := hex.DecodeString(a) if err != nil { panic(err) } fmt.Println(string(bs)) }
posted on 2019-06-14 18:04 WalkerWang731 阅读(1293) 评论(0) 编辑 收藏 举报