Skip to content

Releases: dsnet/try

v0.0.3

06 May 18:59
325094e
Compare
Choose a tag to compare

Changes:

  • Optimize E functions (#13)

Documentation changes:

  • Improve package documentation (#12)

Thank you @josharian, @zeebo, and @thepudds for contributions! 🥇

v0.0.2

05 May 22:30
e8974ea
Compare
Choose a tag to compare

Semantic changes:

  • F prints with the short file name (#6)
  • The stack trace of F uses a short try.go file name (#7)

Other changes:

  • Add a README.md file (#10)
  • Add a GitHub Actions test (#9)

v0.0.1

05 May 20:37
Compare
Choose a tag to compare

Initial release of the try package.

API:

  • func E(err error)
  • func E1[A any](A, error) A
  • func E2[A, B any](A, B, error) (A, B)
  • func E3[A, B, C any](A, B, C, error) (A, B, C)
  • func E4[A, B, C, D any](A, B, C, D, error) (A, B, C, D)
  • func F(func(...any))
  • func Handle(*error)
  • func HandleF(*error, func())
  • func Recover(func(error, runtime.Frame))