« * K @antonz.org

Anton Zhiyanov @antonz.org

2026-08-31 18:23 UTC

Since you can call any method like a regular function, these two calls are equivalent: var err = errors․New("oops") err.Error() // "oops" error.Error(err) // "oops" So error.Error(errors.ErrUnsupported) is just "unsupported operation" 🤓

1 picture (not shown on this phone)

A reply in a thread.

2 likes, 0 reposts, 0 replies

3 Next post4 More from @antonz.orgBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup