projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d0577a7379f8cc368ae6c104352c92a4092566c9
[dotfiles/.git]
/
anonymous.go
1
package pkg
2
3
import "fmt"
4
5
type Node interface {
6
position() int
7
}
8
9
type noder struct{}
10
11
func (noder) position() int { panic("unreachable") }
12
13
func Fn() {
14
nodes := []Node{struct {
15
noder
16
}{}}
17
fmt.Println(nodes)
18
}