MCPcopy Create free account
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 1

Calls

no outgoing calls

Tested by 1