Last active
December 16, 2019 11:14
-
-
Save jjuliano/82ead0799fb7e86232397813590a5469 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" | |
type dog struct { | |
breed string | |
} | |
func main() { | |
kind := dog{ | |
breed: "Rottweiler", | |
} | |
fmt.Println(kind.breed) | |
} | |
// Rottweiler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment