MCPcopy
hub / github.com/cli/cli / String

Method String

internal/safepaths/absolute.go:28–33  ·  view source on GitHub ↗

String returns a string representation of the absolute path, or panics if the absolute path is empty. This guards against programmer error.

()

Source from the content-addressed store, hash-verified

26// String returns a string representation of the absolute path, or panics
27// if the absolute path is empty. This guards against programmer error.
28func (a Absolute) String() string {
29 if a.path == "" {
30 panic("empty absolute path")
31 }
32 return a.path
33}
34
35// Join an absolute path with elements to create a new Absolute path, or error.
36// A PathTraversalError will be returned if the joined path would traverse outside of

Callers 15

TestParseAbsolutePathFunction · 0.45
Test_printErrorFunction · 0.45
getOrCreateDeviceIDFunction · 0.45
telemetry.goFile · 0.45
Test_extractZipFunction · 0.45
extractZipFileFunction · 0.45
contentFunction · 0.45
TestGenMdDocFunction · 0.45

Calls

no outgoing calls