MCPcopy
hub / github.com/golang/net / String

Function String

html/atom/atom.go:73–78  ·  view source on GitHub ↗

String returns a string whose contents are equal to s. In that sense, it is equivalent to string(s) but may be more efficient.

(s []byte)

Source from the content-addressed store, hash-verified

71// String returns a string whose contents are equal to s. In that sense, it is
72// equivalent to string(s) but may be more efficient.
73func String(s []byte) string {
74 if a := Lookup(s); a != 0 {
75 return a.String()
76 }
77 return string(s)
78}

Callers 1

TokenMethod · 0.92

Calls 2

LookupFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…