Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCYOAHandler ¶
NewCYOAHandler constructs a new cyoa handler implementing the http.Handler interface.
Types ¶
type CYOAHandlerOpts ¶
type CYOAHandlerOpts func(h *cyoaHandler)
CYOAHandlerOpts is a functional option wrapper for the internal cyoaHandler type
func WithPrefix ¶
func WithPrefix(prefix string) CYOAHandlerOpts
WithPrefix returns a functional option setting the prefix of the internal cyoa handler type
Click to show internal directories.
Click to hide internal directories.