github.com/golang/mock@v1.6.0/mockgen/internal/tests/const_array_length/input.go (about) 1 package const_length 2 3 import "math" 4 5 //go:generate mockgen -package const_length -destination mock.go -source input.go 6 7 const C = 2 8 9 type I interface { 10 Foo() [C]int 11 Bar() [2]int 12 Baz() [math.MaxInt8]int 13 }