container: provide usage example
Some checks failed
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Failing after 1m2s
Test / Sandbox (race detector) (push) Failing after 1m16s
Test / Hakurei (push) Failing after 1m24s
Test / Hpkg (push) Failing after 1m40s
Test / Hakurei (race detector) (push) Failing after 1m54s
Test / Flake checks (push) Has been skipped

This requires cgo so unfortunately will not run in the playground.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-11-14 18:11:39 +09:00
parent b7406cc4c4
commit b4859cd1d1
2 changed files with 41 additions and 1 deletions

View File

@@ -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
}