go fmt
This commit is contained in:
parent
65931445a8
commit
7f48702b83
3 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ func (p *goPlugin) SetRoutes(group *echo.Group) {
|
|||
group.Add(r.Method, r.Path, r.Handler)
|
||||
}
|
||||
|
||||
group.Static("/plugins/" + p.p.Name + "/assets", pluginDir + "/" + p.p.Name + "/public/assets")
|
||||
group.Static("/plugins/"+p.p.Name+"/assets", pluginDir+"/"+p.p.Name+"/public/assets")
|
||||
}
|
||||
|
||||
func (p *goPlugin) Inject(name string, data interface{}) error {
|
||||
|
|
|
@ -119,7 +119,7 @@ func (p *luaPlugin) SetRoutes(group *echo.Group) {
|
|||
}
|
||||
|
||||
_, name := filepath.Split(filepath.Dir(p.filename))
|
||||
group.Static("/plugins/" + name + "/assets", filepath.Dir(p.filename) + "/public/assets")
|
||||
group.Static("/plugins/"+name+"/assets", filepath.Dir(p.filename)+"/public/assets")
|
||||
}
|
||||
|
||||
func (p *luaPlugin) Close() error {
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"time"
|
||||
|
||||
imapclient "github.com/emersion/go-imap/client"
|
||||
"github.com/emersion/go-smtp"
|
||||
"github.com/emersion/go-sasl"
|
||||
"github.com/emersion/go-smtp"
|
||||
)
|
||||
|
||||
// TODO: make this configurable
|
||||
|
@ -130,7 +130,7 @@ type SessionManager struct {
|
|||
|
||||
func newSessionManager(dialIMAP DialIMAPFunc, dialSMTP DialSMTPFunc) *SessionManager {
|
||||
return &SessionManager{
|
||||
sessions: make(map[string]*Session),
|
||||
sessions: make(map[string]*Session),
|
||||
dialIMAP: dialIMAP,
|
||||
dialSMTP: dialSMTP,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue