diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-14 18:11:39 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-14 18:25:22 +0900 |
| commit | 299685775a373bfcf18f03a1c2b7db996ff90267 (patch) | |
| tree | aa4de1d5dc9a749053144a6edfb9207c0c3a168a /container/check/absolute.go | |
| parent | b7406cc4c45765f9a0caad472a858f06cd6bd024 (diff) | |
container: provide usage example
This requires cgo so unfortunately will not run in the playground.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/check/absolute.go')
| -rw-r--r-- | container/check/absolute.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/check/absolute.go b/container/check/absolute.go index 83ae8cc4..fcb260c5 100644 --- a/container/check/absolute.go +++ b/container/check/absolute.go @@ -56,7 +56,7 @@ func NewAbs(pathname string) (*Absolute, error) { // MustAbs calls [NewAbs] and panics on error. func MustAbs(pathname string) *Absolute { if a, err := NewAbs(pathname); err != nil { - panic(err.Error()) + panic(err) } else { return a } |
