arc

package
v0.0.0-...-7459272 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(s Story) http.Handler

Types

type Chapter

type Chapter struct {
	Title      string    `json:"title,omitempty"`
	Paragraphs []string  `json:"story,omitempty"`
	Options    []*Option `json:"options,omitempty"`
}

type Option

type Option struct {
	Description string `json:"text,omitempty"`
	Arc         string `josn:"arc,omitempty"`
}

type Story

type Story map[string]Chapter

func InitiateChapters

func InitiateChapters(JSONInput string) (Story, error)

Jump to

Keyboard shortcuts

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