{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/jub0bs/errutil","name":"github.com/jub0bs/errutil","description":"Package errutil provides utility functions for working with errors.\n\nThe advent of errors.As in the standard library predates that of parametric\npolymorphism (generics) in the language.\nAs a result, errors.As is not as ergonomic, type-safe, or efficient as it\nideally could be.\nFunctions As and Find are inspired by several unaccepted proposals\n(see issues 51945, 56949, and 64771) and aim to address those limitations.\n\nIn most cases, As can be used as a drop-in replacement for errors.As.\n\nFind is a more efficient and arguably more ergonomic alternative to As.\nIncidentally, the error-inspection draft design proposal suggests that errors.As\nwould have been very similar to Find if the Go team had cracked\nthe parametric-polymorphism nut in time for errors.As's inception in the\nstandard library.\nIn many cases, a call to errors.As can advantageously be refactored to a call\nto Find.","version":"v0.4.0","softwareVersion":"v0.4.0","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/jub0bs/errutil","issueTracker":"https://github.com/jub0bs/errutil/issues","url":"https://github.com/jub0bs/errutil","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2024-10-02","dateModified":"2026-02-21","datePublished":"2026-02-21","copyrightYear":2024,"downloadUrl":"https://proxy.golang.org/github.com/jub0bs/errutil/@v/v0.4.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/jub0bs/errutil#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/jub0bs/errutil"],"funder":[{"@type":"Organization","url":"https://github.com/sponsors/jub0bs"}],"https://www.w3.org/ns/activitystreams#likes":37}