cyoa_handlers

package
v0.0.0-...-c470439 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCYOAHandler

func NewCYOAHandler(st *story.Story, tmpl *template.Template, opts ...CYOAHandlerOpts) http.Handler

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL