Skip to content

Instantly share code, notes, and snippets.

@girish3
Created May 30, 2017 15:49
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 girish3/7e4f7e5d31a0473593fa0499355b8036 to your computer and use it in GitHub Desktop.
Save girish3/7e4f7e5d31a0473593fa0499355b8036 to your computer and use it in GitHub Desktop.
// Taking the same Go example as above
// Human and Student structs ....
human := Human{"John"}
// human will be passed by value, new copy will be created.
student := Student{human, 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment