wiki

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 18 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FG = "fg"
	BG = "bg"

	STROKE_DASHARRAY = "stroke-dasharray"
	STROKE_WIDTH     = "stroke-width"
	STROKE           = "stroke"
	FILL             = "fill"
	FONT_SIZE        = "font-size"
	FONT_FAMILY      = "font-family"

	PADDING = "padding"
	MARGINX = "marginx"
	MARGINY = "marginy"
	HEIGHT  = "height"
	WIDTH   = "width"
)
View Source
const (
	LABEL = "label"
	CHAIN = "chain"
)
View Source
const (
	FEATURE = "feature"
	INPUTS  = "inputs"
	ARGS    = "args"
)
View Source
const (
	IMG  = "img"
	PNG  = "png"
	JPG  = "jpg"
	JPEG = "jpeg"
)
View Source
const (
	INPUT  = "input"
	OUTPUT = "output"
)
View Source
const (
	PROMPT = "prompt"
	BREAK  = "break"
)
View Source
const (
	NAVMENU = "navmenu"
	PREMENU = "premenu"
	CHAPTER = "chapter"
	SECTION = "section"
	ENDMENU = "endmenu"
)
View Source
const (
	PREFIX = "prefix"
	LEVEL  = "level"
	MENU   = "menu"
)
View Source
const BRIEF = "brief"
View Source
const CHART = "chart"
View Source
const DATA = "data"
View Source
const DRAW = "draw"
View Source
const FEEL = "feel"
View Source
const FIELD = "field"
View Source
const IMAGE = "image"
View Source
const LOCAL = "local"
View Source
const (
	MOV = "mov"
)
View Source
const ORDER = "order"
View Source
const PARSE = "parse"
View Source
const REFER = "refer"
View Source
const SHELL = "shell"
View Source
const SPARK = "spark"
View Source
const TABLE = "table"
View Source
const TITLE = "title"
View Source
const VIDEO = "video"
View Source
const WIKI = "wiki"
View Source
const WORD = "word"

Variables

View Source
var Index = &ice.Context{Name: WIKI, Help: "文档中心"}

Functions

func AddChart added in v0.7.8

func AddChart(name string, hand func(m *ice.Message) Chart)

func AddGroupOption added in v0.7.8

func AddGroupOption(m *ice.Message, group string, arg ...string)

func Parse added in v0.6.2

func Parse(m *ice.Message, meta string, key string, arg ...string) (data interface{})

Types

type Chart

type Chart interface {
	Init(*ice.Message, ...string) Chart
	Data(*ice.Message, interface{}) Chart
	Draw(*ice.Message, int, int) Chart

	GetHeight(...string) int
	GetWidth(...string) int
}

type Group added in v0.7.8

type Group struct {
	// contains filtered or unexported fields
}

func NewGroup added in v0.7.8

func NewGroup(m *ice.Message, arg ...string) *Group

func (*Group) DefsArrow added in v0.7.8

func (g *Group) DefsArrow(group string, height, width int, arg ...string) *ice.Message

func (*Group) Dump added in v0.7.8

func (g *Group) Dump(m *ice.Message, group string, arg ...string) *Group

func (*Group) Echo added in v0.7.8

func (g *Group) Echo(group string, str string, arg ...interface{}) *ice.Message

func (*Group) EchoArrowLine added in v0.7.8

func (g *Group) EchoArrowLine(group string, x1, y1, x2, y2 int, arg ...string) *ice.Message

func (*Group) EchoLine added in v0.7.8

func (g *Group) EchoLine(group string, x1, y1, x2, y2 int) *ice.Message

func (*Group) EchoRect added in v0.7.8

func (g *Group) EchoRect(group string, height, width, x, y int, arg ...string) *ice.Message

func (*Group) EchoText added in v0.7.8

func (g *Group) EchoText(group string, x, y int, text string) *ice.Message

func (*Group) Get added in v0.7.8

func (g *Group) Get(group string) *ice.Message

func (*Group) Option added in v0.7.8

func (g *Group) Option(group string, key string, arg ...interface{}) string

type Item added in v0.7.8

type Item struct {
	// contains filtered or unexported fields
}

func NewItem added in v0.7.8

func NewItem(list []string, args ...interface{}) *Item

func (*Item) Dump added in v0.7.8

func (item *Item) Dump(m *ice.Message) *ice.Message

func (*Item) Echo added in v0.7.8

func (item *Item) Echo(str string, arg ...interface{}) *Item

func (*Item) Push added in v0.7.8

func (item *Item) Push(str string, arg interface{}) *Item

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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