sbi

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnknowAlgorithm throw when the algorithm is unknow
	ErrUnknowAlgorithm = errors.New("Unknow Algorithm")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PKG     string
	Comment string

	Algorithm string

	Params map[string]string

	Force bool
}

Config define the raw data of plugin

type Plugin

type Plugin interface {
	SourceFileName() string
	ExampleFileName() string
	DescriptionForParams() map[string]string

	Source(*os.File, func())
	Encode(path, relPath string, fi os.FileInfo, err error) error

	Example(*os.File)
}

Plugin is the interface of plugin

Jump to

Keyboard shortcuts

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