Skip to content

Instantly share code, notes, and snippets.

@nwillc
Created July 15, 2022 14:20
Show Gist options
  • Save nwillc/7d3d9cb2ea3ef2330d4c4c8866cc959c to your computer and use it in GitHub Desktop.
Save nwillc/7d3d9cb2ea3ef2330d4c4c8866cc959c to your computer and use it in GitHub Desktop.
Go JSON signatures
// This returns a single error and mutates v!
func json.Unmarshal(data []byte, v any) error {}
// This mutates b and returns an int and an error.
func (f *File) os.ReadAt(b []byte, off int64) (n int, err error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment