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

@@ -1,24 +1,24 @@
package go_koans
func aboutStructs() {
var bob struct {
name string
age int
}
bob.name = "bob"
bob.age = 30
var bob struct {
name string
age int
}
bob.name = "bob"
bob.age = 30
assert(bob.name == __string__) // structs are collections of named variables
assert(bob.age == __int__) // each field has both setter and getter behavior
assert(bob.name == __string__) // structs are collections of named variables
assert(bob.age == __int__) // each field has both setter and getter behavior
type person struct {
name string
age int
}
type person struct {
name string
age int
}
var john person
john.name = "bob"
john.age = __int__
var john person
john.name = "bob"
john.age = __int__
assert(bob == john) // assuredly, bob is certainly not john.. yet
assert(bob == john) // assuredly, bob is certainly not john.. yet
}