Skip to content

Instantly share code, notes, and snippets.

@kinshuk4
Created August 21, 2016 10:27
Show Gist options
  • Save kinshuk4/1dc5c8213f56ddcefb1834aea603b2b5 to your computer and use it in GitHub Desktop.
Save kinshuk4/1dc5c8213f56ddcefb1834aea603b2b5 to your computer and use it in GitHub Desktop.
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