String returns a string representation of the absolute path, or panics if the absolute path is empty. This guards against programmer error.
()
| 26 | // String returns a string representation of the absolute path, or panics |
| 27 | // if the absolute path is empty. This guards against programmer error. |
| 28 | func (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 |
no outgoing calls