Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(s Story, opts ...HandlerOption) http.Handler
NewHandler instantiates new cyoa handler struct
Types ¶
type HandlerOption ¶
type HandlerOption func(h *handler)
HandlerOption is a func of handler options
func WithPathFunc ¶
func WithPathFunc(fn func(r *http.Request) string) HandlerOption
WithPathFunc HandlerOptions option
func WithTemplate ¶
func WithTemplate(t *template.Template) HandlerOption
WithTemplate HandlerOptions option
Click to show internal directories.
Click to hide internal directories.