Skip to content

Instantly share code, notes, and snippets.

@kjk
Created November 6, 2019 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjk/38716aa4a1102085d3c990d2c616348c to your computer and use it in GitHub Desktop.
Save kjk/38716aa4a1102085d3c990d2c616348c to your computer and use it in GitHub Desktop.
Essential Go: basics of structs (made with https://codeeval.dev)
// :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