Update 02.4.md

This commit is contained in:
Nay Zaw Oo
2017-11-14 01:29:42 +06:30
committed by GitHub
parent 70c8a68675
commit 068f020325

View File

@@ -29,7 +29,7 @@ P.name = "Astaxie" // assign "Astaxie" to the field 'name' of p
P.age = 25 // assign 25 to field 'age' of p
fmt.Printf("The person's name is %s\n", P.name) // access field 'name' of p
```
There are three more ways to define a struct.
There are three more ways to initialize a struct.
- Assign initial values by order
```Go