handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(handler Handler) (e error)

Register 註冊 處理器

Types

type Handler

type Handler interface {
	ID() string
	Handle(context *types.Context, root, dst string) (e error)
}

Handler 處理器

func Find

func Find(id string) Handler

Find 查找 處理器

type Writer

type Writer struct {
	W io.StringWriter
}

Writer 提供方便的 寫入功能

func (Writer) WriteString

func (w Writer) WriteString(a ...interface{}) (e error)

WriteString .

func (Writer) WriteStringf

func (w Writer) WriteStringf(format string, a ...interface{}) (e error)

WriteStringf .

func (Writer) WriteStringln

func (w Writer) WriteStringln(a ...interface{}) (e error)

WriteStringln .

Directories

Path Synopsis
c
cpp

Jump to

Keyboard shortcuts

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