https://www.sheldonhull.com/go-r1-day-58/
2021-07-21T22:56:56Z
90 words
One minute
progress
Avoiding a panic in Go for missing dictionary match is very straight forward.
The error pattern for failed conversions and out of range index matches is the same, with: ok, err := action.
TODO: Figure out if ok to reference an error in a test by: is.Equal(error.Error(),"unable to find value in map").
Linter warns me with: Method call 'err.Error()' might lead to a nil pointer dereference.
Webmentions
(No webmentions yet.)