Run "go fmt" on all .go files

This commit is contained in:
John Gosset
2014-12-09 09:04:26 -05:00
parent 19cbebee5e
commit ac49ca7392
20 changed files with 380 additions and 379 deletions

View File

@@ -3,30 +3,30 @@ package go_koans
import "bytes"
func aboutCommonInterfaces() {
{
in := new(bytes.Buffer)
in.WriteString("hello world")
{
in := new(bytes.Buffer)
in.WriteString("hello world")
out := new(bytes.Buffer)
out := new(bytes.Buffer)
/*
Your code goes here.
Hint, use these resources:
/*
Your code goes here.
Hint, use these resources:
$ godoc -http=:8080
$ open http://localhost:8080/pkg/io/
$ open http://localhost:8080/pkg/bytes/
*/
$ godoc -http=:8080
$ open http://localhost:8080/pkg/io/
$ open http://localhost:8080/pkg/bytes/
*/
assert(out.String() == "hello world") // get data from the io.Reader to the io.Writer
}
assert(out.String() == "hello world") // get data from the io.Reader to the io.Writer
}
{
in := new(bytes.Buffer)
in.WriteString("hello world")
{
in := new(bytes.Buffer)
in.WriteString("hello world")
out := new(bytes.Buffer)
out := new(bytes.Buffer)
assert(out.String() == "hello") // duplicate only a portion of the io.Reader
}
assert(out.String() == "hello") // duplicate only a portion of the io.Reader
}
}