Created
November 6, 2019 01:29
-
-
Save kjk/38716aa4a1102085d3c990d2c616348c to your computer and use it in GitHub Desktop.
Essential Go: basics of structs (made with https://codeeval.dev)
This file contains 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
// :glot, no output | |
package main | |
// :show start | |
type MyStruct struct { | |
IntVal int | |
StringVal string | |
unexportedIntVal int | |
} | |
// :show end | |
func main() { | |
// do nothing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment