Created
February 22, 2019 12:12
-
-
Save J7mbo/04b42b24f2ec925af546d29def48ce9d to your computer and use it in GitHub Desktop.
golang-constructors-blog-12
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
type MyInterface interface { | |
MethodMustBeImplemented() | |
} | |
type MyStruct struct { } | |
func (*MyStruct) MethodMustBeImplemented() { } // Implicit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment