Skip to content

Instantly share code, notes, and snippets.

@mastern2k3
Created October 9, 2019 20:25
Show Gist options
  • Save mastern2k3/f14ae2afef17111b7b6325dbfc758bf2 to your computer and use it in GitHub Desktop.
Save mastern2k3/f14ae2afef17111b7b6325dbfc758bf2 to your computer and use it in GitHub Desktop.
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