mirror of
https://github.com/1f349/lavender.git
synced 2025-01-21 06:06:30 +00:00
16 lines
312 B
Go
16 lines
312 B
Go
package auth
|
|
|
|
import (
|
|
"context"
|
|
"html/template"
|
|
"net/http"
|
|
)
|
|
|
|
type Button interface {
|
|
// ButtonName defines the text to show on the button.
|
|
ButtonName() string
|
|
|
|
// RenderButtonTemplate returns a template for the button widget.
|
|
RenderButtonTemplate(ctx context.Context, req *http.Request) template.HTML
|
|
}
|