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
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user