mirror of
https://github.com/allankoechke/tutorials.git
synced 2026-12-05 17:39:48 +00:00
15 lines
163 B
Go
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)
|
|
}
|