Go R1 Day 58
tech development 100DaysOfCode golang microblog
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. - Started work with dependency injection.