diff --git a/README b/README index 98eac50..aa2eac0 100644 --- a/README +++ b/README @@ -14,15 +14,13 @@ get web presence in good enough shape to point to from blog post basic copy - landing, post-subscribe, post-confirm subscription management -validate book style in editor - 01-hello - 22-varags - xx-rand - xx-sha1 +validate content by filling out some examples validate book style in web mockup http://jashkenas.github.com/docco/ +fork into gbe-book + join Google+ and claim website = vision diff --git a/src/xx-number-parsing.go b/src/xx-number-parsing.go index 6233d88..b3fd775 100644 --- a/src/xx-number-parsing.go +++ b/src/xx-number-parsing.go @@ -8,20 +8,20 @@ import ( ) func main() { - f, _ := strconv.ParseFloat("1.234", 64) // `64` tells how many bits of precision to parse. - fmt.Println(f) + f, _ := strconv.ParseFloat("1.234", 64) // `64` tells how many bits of precision to parse. + fmt.Println(f) - i, _ := strconv.ParseInt("123", 0, 64) // `0` means infer the base from the string. - println(i) // `64` requires that the result fit in 64 bits. + i, _ := strconv.ParseInt("123", 0, 64) // `0` means infer the base from the string. + println(i) // `64` requires that the result fit in 64 bits. - d, _ := strconv.ParseInt("0x1b3e", 0, 64) // `ParseInt` will recognize hex-formatted numbers. - println(d) + d, _ := strconv.ParseInt("0x1b3e", 0, 64) // `ParseInt` will recognize hex-formatted numbers. + println(d) - k, _ := strconv.Atoi("456") // `Atoi` is a convenienice function for `int` parsing. - println(k) - - _, e := strconv.Atoi("wat") // Parse functions return an error on bad input. - fmt.Println(e) + k, _ := strconv.Atoi("456") // `Atoi` is a convenienice function for `int` parsing. + println(k) + + _, e := strconv.Atoi("wat") // Parse functions return an error on bad input. + fmt.Println(e) } /*