Created
August 21, 2016 10:27
-
-
Save kinshuk4/1dc5c8213f56ddcefb1834aea603b2b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
type member struct { | |
name string | |
race string | |
} | |
krillin := member{} | |
krillin.name = "Krillin" | |
krillin.race = "Human" | |
gohan := member{ | |
name: "Gohan", | |
race: "Saiyan", | |
} | |
fmt.Println(krillin, gohan) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment