Created
February 22, 2019 12:11
-
-
Save J7mbo/3c24a7acf177e6756ef8abb9793821b2 to your computer and use it in GitHub Desktop.
golang-constructors-blog-10.go
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
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