Created
October 9, 2019 20:25
-
-
Save mastern2k3/f14ae2afef17111b7b6325dbfc758bf2 to your computer and use it in GitHub Desktop.
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
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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment