renumber again

This commit is contained in:
Mark McGranaghan
2012-09-23 13:29:28 -07:00
parent 1ef0ead109
commit ebe6383f98
118 changed files with 2 additions and 2 deletions

22
027-structs/structs.go Normal file
View File

@@ -0,0 +1,22 @@
// ## Structs
package main
import "fmt"
type Circle struct {
x, y, r float64
}
func main() {
cEmptyPtr := new(Circle)
fmt.Println(cEmptyPtr)
fmt.Println(*cEmptyPtr)
cValue := Circle{x: 1, y: 2, r: 5}
fmt.Println(&cValue)
fmt.Println(cValue)
cOrdered := Circle{1, 2, 5}
fmt.Println(cOrdered)
}