import (
"clevergo.tech/auth"
"clevergo.tech/auth/authenticators"
"clevergo.tech/authmiddleware"
"clevergo.tech/clevergo"
)
var store auth.IdentityStore
authenticator := authenticators.NewBasicAuth(store)
app := clevergo.New()
app.Use(authmiddleware.New(authenticator))
Checkout example for details.