docs: example-plugin

This commit is contained in:
Ethan Buchman
2017-02-07 16:12:50 -05:00
parent d54763965e
commit 7335c8287c
7 changed files with 562 additions and 5 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ func (cp *CounterPlugin) StateKey() []byte {
return []byte(fmt.Sprintf("CounterPlugin{name=%v}.State", cp.name))
}
func New(name string) *CounterPlugin {
func New() *CounterPlugin {
return &CounterPlugin{
name: name,
name: "counter",
}
}