MCPcopy
hub / github.com/grpc/grpc-go / escape

Function escape

channelz/service/service_test.go:787–793  ·  view source on GitHub ↗
(bs []byte)

Source from the content-addressed store, hash-verified

785}
786
787func escape(bs []byte) string {
788 ret := ""
789 for _, b := range bs {
790 ret += fmt.Sprintf("\\x%02x", b)
791 }
792 return ret
793}
794
795func addr(a net.Addr) string {
796 switch a := a.(type) {

Callers 2

TestGetSocketMethod · 0.85
addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected