randomline

package
v0.0.0-...-bdea560 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Randomlines holds our RandomItems, mapped to their primary keyword.
	Randomlines map[string]RandomItem
)

Functions

This section is empty.

Types

type RandomItem

type RandomItem struct {
	Keyword   string
	Aliases   []string
	Responses []string
}

RandomItem holds one item stanza.

func (*RandomItem) GetResponse

func (ri *RandomItem) GetResponse() string

GetResponse gives you one of the RandomItem's Responses.

Jump to

Keyboard shortcuts

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