Bootstrapping: 10 Tips
harfangapps.com3 pointsby PuerkitoBio0 comments
> A value that is a number, true, false or null in JSON is parsed as a value.
> E.g. '3' is a valid number while '3 times' is a string. > quoteless strings include everything up to the end of the
> line, excluding trailing whitespace.
(edit: formatting) > When you omit quotes the string ends at the newline.
> Preceding and trailing whitespace is ignored as are escapes.
>
> A value that is a number, true, false or null in JSON is
> parsed as a value. E.g. 3 is a valid number while 3 times is
> a string.
(edit: formatting) if err != nil {
return err
}
Those 3 lines have very, very little maintenance cost.