diff options
Diffstat (limited to 'plugin/example_hello_user_test.go')
-rw-r--r-- | plugin/example_hello_user_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/example_hello_user_test.go b/plugin/example_hello_user_test.go index 4aefbc5f5..989cca0f2 100644 --- a/plugin/example_hello_user_test.go +++ b/plugin/example_hello_user_test.go @@ -12,9 +12,10 @@ type HelloUserPlugin struct { api plugin.API } -func (p *HelloUserPlugin) OnActivate(api plugin.API) { +func (p *HelloUserPlugin) OnActivate(api plugin.API) error { // Just save api for later when we need to look up users. p.api = api + return nil } func (p *HelloUserPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request) { |