context

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	basecontext.Context
	// contains filtered or unexported fields
}

Context is a wrapper around context.Context with convinient methods.

func New

func New(ctx basecontext.Context) *Context

New creates a new context.

func (*Context) BeginRawMode

func (ctx *Context) BeginRawMode(t node.Tag)

BeginRawMode begins a raw mode for tag.

func (*Context) EndRawMode

func (ctx *Context) EndRawMode(t node.Tag)

EndRawMode ends a raw mode for tag.

func (*Context) InRawMode

func (ctx *Context) InRawMode(t node.Tag) bool

InRawMode checks whether the given tag is in raw mode.

func (*Context) Prev2Node

func (ctx *Context) Prev2Node() node.Node

Prev2Node returns a node before previous.

func (*Context) PrevNode

func (ctx *Context) PrevNode() node.Node

PrevNode returns a previous processed node.

func (*Context) RawModeTag

func (ctx *Context) RawModeTag() node.Tag

RawModeTag returns a tag in raw mode.

func (*Context) SetPrevNode

func (ctx *Context) SetPrevNode(n node.Node)

SetPrevNode sets a previous processed node.

Jump to

Keyboard shortcuts

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