MCPcopy Create free account
hub / github.com/cli/cli / NewUntrustedBytes

Function NewUntrustedBytes

pkg/iostreams/untrusted.go:31–33  ·  view source on GitHub ↗

NewUntrustedBytes labels a byte slice as untrusted external content.

(b []byte)

Source from the content-addressed store, hash-verified

29
30// NewUntrustedBytes labels a byte slice as untrusted external content.
31func NewUntrustedBytes(b []byte) Untrusted {
32 return Untrusted{raw: string(b)}
33}
34
35// String returns the content with ANSI escape sequences neutralized. It is
36// called automatically by the fmt package, so printing an Untrusted value is

Callers 3

GetRawGistFileFunction · 0.92
FetchBlobFunction · 0.92

Calls

no outgoing calls

Tested by 1