parse

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(fs *FileSet, fpath string, input []byte) (*ast.TemplateFile, error)

Types

type FileSet

type FileSet struct {
	Counter   int64
	Filenames map[string]int64
	Newlines  map[string][]int64
}

func NewFileSet

func NewFileSet() *FileSet

func (*FileSet) AddFile

func (fs *FileSet) AddFile(filename string, contents []byte) int64

func (*FileSet) ResolvePosition

func (fs *FileSet) ResolvePosition(pos int64) string

Jump to

Keyboard shortcuts

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