projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
anonymous
/
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
}