Skip to content

Instantly share code, notes, and snippets.

@J7mbo
Created February 22, 2019 12:11
Show Gist options
  • Save J7mbo/3c24a7acf177e6756ef8abb9793821b2 to your computer and use it in GitHub Desktop.
Save J7mbo/3c24a7acf177e6756ef8abb9793821b2 to your computer and use it in GitHub Desktop.
golang-constructors-blog-10.go
func (s MyStruct) StructFunc() {
if s.child == (ChildStruct{}) {
return
}
fmt.Println(s.child.num)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment