Skip to content

Instantly share code, notes, and snippets.

@mhewedy
Created August 8, 2019 14:43
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 mhewedy/784dadd3a15981b09e9accd831ee0adf to your computer and use it in GitHub Desktop.
Save mhewedy/784dadd3a15981b09e9accd831ee0adf to your computer and use it in GitHub Desktop.
import (
"fmt"
)
type User int
func (self User) Run() {
fmt.Printf("%v %p Running\n", self, &self)
}
type Runnable interface {
Run()
}
func main() {
user := User(10122)
user.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment