preprocessor

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Data []byte
	// contains filtered or unexported fields
}

func New

func New(data []byte) *Processor

func (*Processor) NextTag

func (p *Processor) NextTag() (*TagInfo, error)

type TagInfo

type TagInfo struct {
	Tag TagType

	Content []byte
	// contains filtered or unexported fields
}

func (*TagInfo) Replace

func (ti *TagInfo) Replace(newContent []byte)

type TagType

type TagType int
const (
	TagSRC TagType = iota + 1
	TagENV
)

Jump to

Keyboard shortcuts

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