Last active
February 22, 2018 18:59
-
-
Save zombiezen/7d0200e805f5a43de964b4957308003d to your computer and use it in GitHub Desktop.
A simple Go library with a structure including a name and a number.
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 contacts | |
type Person struct { | |
FirstName string | |
LastName string | |
FavoriteNumber int | |
} | |
func Me() *Person { | |
return &Person{ | |
FirstName: "Ross", | |
LastName: "Light", | |
FavoriteNumber: 42, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment