Files
tutorials/go/01-learn-go/08-struct.go
2018-01-28 16:36:42 +00:00

15 lines
163 B
Go

package main
import "fmt"
type person struct {
name string
age int
}
func main() {
p := person{name: "Jake", age: 23}
fmt.Println(p)
fmt.Println(p.age)
}