context

package
v0.0.0-...-c182ff6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TableKey = "table"
	RawKey   = "raw"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSubjectContext

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

func (*BaseSubjectContext) AddHeader

func (c *BaseSubjectContext) AddHeader(header string)

func (*BaseSubjectContext) FullHeader

func (c *BaseSubjectContext) FullHeader() string

type Context

type Context struct {
	Truncate bool
	Writer   io.Writer
	Template string
	Quiet    bool
	Buffer   *bytes.Buffer
	// contains filtered or unexported fields
}

func (*Context) ContextFormat

func (c *Context) ContextFormat(tpl *template.Template, subject SubjectContext) error

func (*Context) FormFormat

func (c *Context) FormFormat(tpl *template.Template, subject SubjectContext)

func (*Context) Parser

func (c *Context) Parser() (*template.Template, error)

func (*Context) PreFormat

func (c *Context) PreFormat()

type SubjectContext

type SubjectContext interface {
	FullHeader() string
	AddHeader(header string)
}

Jump to

Keyboard shortcuts

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