forked from security/hakurei
container: provide usage example
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