updating some things

This commit is contained in:
Steven Degutis
2012-03-17 12:11:22 -05:00
parent 95e2dcf25d
commit 08bb6db1fa
2 changed files with 7 additions and 1 deletions

View File

@@ -22,6 +22,12 @@ Since the `$GOPATH` is useful any time in Go, this is recommended:
$ git clone https://sdegutis@github.com/sdegutis/go-koans.git $ git clone https://sdegutis@github.com/sdegutis/go-koans.git
$ cd go-koans $ cd go-koans
### Getting Help
Two super useful references are the [spec](http://weekly.golang.org/ref/spec) and the [packages](http://weekly.golang.org/pkg/) listing.
You can also run the Go website locally with `godoc -http=:8080` so you don't need the internet. Then open [http://localhost:8080/ref/spec](http://localhost:8080/ref/spec) and [http://localhost:8080/pkg/](http://localhost:8080/pkg/).
### Usage ### Usage
$ go test $ go test

View File

@@ -24,7 +24,7 @@ func aboutStrings() {
assert(fmt.Sprintf("hello %s", __string__) == "hello world") // our old friend sprintf returns assert(fmt.Sprintf("hello %s", __string__) == "hello world") // our old friend sprintf returns
assert(fmt.Sprintf("hello \"%s\"", "world") == __string__) // quoting is familiar assert(fmt.Sprintf("hello \"%s\"", "world") == __string__) // quoting is familiar
assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done easilier assert(fmt.Sprintf("hello %q", "world") == __string__) // although it can be done more easily
assert(fmt.Sprintf("your balance: %d and %0.2f", 3, 4.5589) == __string__) // "the root of all evil" is actually a misquotation, by the way assert(fmt.Sprintf("your balance: %d and %0.2f", 3, 4.5589) == __string__) // "the root of all evil" is actually a misquotation, by the way
} }