Created
October 12, 2016 20:49
-
-
Save mlowicki/5914b6ae4a0553bf420823f20a448353 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package main | |
import "fmt" | |
type T struct{} | |
func (t T) m() { | |
fmt.Println("Inside method") | |
} | |
func main() { | |
t := T{} | |
defer t.m() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment