From 299685775a373bfcf18f03a1c2b7db996ff90267 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 14 Nov 2025 18:11:39 +0900 Subject: container: provide usage example This requires cgo so unfortunately will not run in the playground. Signed-off-by: Ophestra --- container/check/absolute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/check/absolute.go') 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 } -- cgit v1.3.1