Created
July 29, 2015 04:17
-
-
Save mattetti/a5576705217642c1c437 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 key struct { | |
| door string | |
| } | |
| keys := []key{key{door: "x"}, key{door: "y"}, key{door: "z"}} | |
| fmt.Print(keys[0]) | |
| // find the key to open door y | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment