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