spaces
This commit is contained in:
parent
5e39ab34db
commit
88bd28f80c
8
README
8
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
|
basic copy - landing, post-subscribe, post-confirm
|
||||||
subscription management
|
subscription management
|
||||||
|
|
||||||
validate book style in editor
|
validate content by filling out some examples
|
||||||
01-hello
|
|
||||||
22-varags
|
|
||||||
xx-rand
|
|
||||||
xx-sha1
|
|
||||||
|
|
||||||
validate book style in web mockup
|
validate book style in web mockup
|
||||||
http://jashkenas.github.com/docco/
|
http://jashkenas.github.com/docco/
|
||||||
|
|
||||||
|
fork into gbe-book
|
||||||
|
|
||||||
join Google+ and claim website
|
join Google+ and claim website
|
||||||
|
|
||||||
= vision
|
= vision
|
||||||
|
@ -8,20 +8,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
f, _ := strconv.ParseFloat("1.234", 64) // `64` tells how many bits of precision to parse.
|
f, _ := strconv.ParseFloat("1.234", 64) // `64` tells how many bits of precision to parse.
|
||||||
fmt.Println(f)
|
fmt.Println(f)
|
||||||
|
|
||||||
i, _ := strconv.ParseInt("123", 0, 64) // `0` means infer the base from the string.
|
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.
|
println(i) // `64` requires that the result fit in 64 bits.
|
||||||
|
|
||||||
d, _ := strconv.ParseInt("0x1b3e", 0, 64) // `ParseInt` will recognize hex-formatted numbers.
|
d, _ := strconv.ParseInt("0x1b3e", 0, 64) // `ParseInt` will recognize hex-formatted numbers.
|
||||||
println(d)
|
println(d)
|
||||||
|
|
||||||
k, _ := strconv.Atoi("456") // `Atoi` is a convenienice function for `int` parsing.
|
k, _ := strconv.Atoi("456") // `Atoi` is a convenienice function for `int` parsing.
|
||||||
println(k)
|
println(k)
|
||||||
|
|
||||||
_, e := strconv.Atoi("wat") // Parse functions return an error on bad input.
|
_, e := strconv.Atoi("wat") // Parse functions return an error on bad input.
|
||||||
fmt.Println(e)
|
fmt.Println(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user