the string() cast was discarding zero values. the proper way to convert integers to strings is with strconv
without this, i cannot get the list of "unread" entries. i actually get:
$ go run config.go main.go
2017/01/29 23:10:11 getConfig: file is config.json
2017/01/29 23:10:11 main: setting wallabago.Config var
getEntries: json unmarshal failed: invalid character '<' looking for beginning of value
2017/01/29 23:10:11 unread%!(EXTRA int=0)
with the patch, i can successfully access unread entries.
the string() cast was discarding zero values. the proper way to convert integers to strings is with strconv
without this, i cannot get the list of "unread" entries. i actually get:
with the patch, i can successfully access unread entries.