Skip to content

Instantly share code, notes, and snippets.

@lldld
lldld / go2 error handling feedback.md
Last active January 19, 2022 20:10
go2 error handling feedback

Import symbol ! to passthrough errors

! is abbreviation of not nil

For example, to call function Sub in caller

func Sub(...) (T1, T2, error) {...}