better error checking and small api change

This commit is contained in:
Zoe
2025-01-09 16:30:30 +00:00
parent d2e37617d4
commit ad0e949070
5 changed files with 53 additions and 27 deletions

View File

@@ -4,8 +4,8 @@ import "github.com/gofiber/fiber/v3"
type MyPlugin struct{}
func (p *MyPlugin) Init() error {
return nil
func (p *MyPlugin) Init() (*fiber.Config, error) {
return nil, nil
}
func (p *MyPlugin) Name() string {