package main import ( "github.com/mattermost/mattermost/server/public/plugin" ) func main() { p := &Plugin{ stopChannel: make(chan struct{}), } p.apiRouter = InitRoutes(p) // Initialize the API router here plugin.ClientMain(p) }