expr

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StartSceneNotFoundError   = errors.New("start scene with it name not found")
	GoodbyeSceneNotFoundError = errors.New("goodbye scene with it name not found")
)

Functions

This section is empty.

Types

type Script

type Script map[string]scene.Scene

type ScriptInfo

type ScriptInfo struct {
	StartScene     string                   `yaml:"startScene" json:"start_scene" xml:"startScene"`
	Name           string                   `yaml:"name" json:"name" xml:"name"`
	GoodByeCommand string                   `yaml:"goodByeCommand" json:"good_bye_command" xml:"goodByeCommand"`
	GoodByeScene   string                   `yaml:"goodByeScene" json:"good_bye_scene" xml:"goodByeScene"`
	UserMatchers   map[string]scene.Matcher `yaml:"matchers,omitempty" json:"matchers,omitempty" xml:"matchers,omitempty"`
	Script         Script                   `yaml:"script" json:"script" xml:"script"`
}

func LoadScriptInfo

func LoadScriptInfo(path string) (*ScriptInfo, error)

func (*ScriptInfo) IsValid

func (si *ScriptInfo) IsValid() (is bool, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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