Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(s Story, opts ...HandlerOpt) http.Handler
NewHandler returns a type that implements htt.Handler
Types ¶
type Chapter ¶
type Chapter struct { Title string `json:"title"` Story []string `json:"story"` Options []Option `json:"options"` }
Chapter structure of the chapter
type HandlerOpt ¶
type HandlerOpt func(h *handler)
func WithTemplate ¶
func WithTemplate(t *template.Template) HandlerOpt
Click to show internal directories.
Click to hide internal directories.