github.com/sagernet/sing@v0.2.6/common/buf/hex.go (about) 1 package buf 2 3 import "encoding/hex" 4 5 func EncodeHexString(src []byte) string { 6 dst := Make(hex.EncodedLen(len(src))) 7 hex.Encode(dst, src) 8 return string(dst) 9 }