Created
October 9, 2019 20:25
-
-
Save mastern2k3/f14ae2afef17111b7b6325dbfc758bf2 to your computer and use it in GitHub Desktop.
Revisions
-
mastern2k3 created this gist
Oct 9, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ package main import "fmt" type Lol struct { a,b,c int d string } func main() { var a interface{} = Lol{} var b interface{} = Lol{} fmt.Printf("%v\n", a == b) fmt.Printf("%T, %T\n", a, &b) j := &b fmt.Printf("%v, %T\n", j, j) k := &j fmt.Printf("%v, %T\n", k, k) var lol *****int fmt.Printf("%v, %T\n", lol, lol) }