Skip to content

Instantly share code, notes, and snippets.

@J7mbo
Created February 22, 2019 12:12
Show Gist options
  • Save J7mbo/04b42b24f2ec925af546d29def48ce9d to your computer and use it in GitHub Desktop.
Save J7mbo/04b42b24f2ec925af546d29def48ce9d to your computer and use it in GitHub Desktop.
golang-constructors-blog-12
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