OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new repo
[bytom/vapor.git]
/
vendor
/
github.com
/
tendermint
/
go-wire
/
gen
/
ex
/
foo.go
1
package ex
2
3
import (
4
"fmt"
5
6
"github.com/tendermint/tmlibs/common"
7
)
8
9
// +gen wrapper:"Foo,Impl[Bling,*Fuzz],blng,fzz"
10
type FooInner interface {
11
Bar() int
12
}
13
14
type Bling struct{}
15
16
func (b Bling) Bar() int {
17
return common.RandInt()
18
}
19
20
type Fuzz struct{}
21
22
func (f *Fuzz) Bar() int {
23
fmt.Println("hello")
24
return 42
25
}