Help us shape the future of Go! Take the 2026 Go Developer Survey

workspace

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInLibrary added in v0.5.0

type FileInLibrary struct {
	File    *files.File
	Library *Library
}

type Library

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

func NewRootLibrary

func NewRootLibrary(fs []*files.File) *Library

func (*Library) CreateLibrary

func (l *Library) CreateLibrary(name string) *Library

func (*Library) FindAccessibleLibrary

func (l *Library) FindAccessibleLibrary(path string) (*Library, error)

func (*Library) FindFile

func (l *Library) FindFile(path string) (*files.File, error)

func (*Library) FindLibrary

func (l *Library) FindLibrary(name string) (*Library, bool)

func (*Library) ListAccessibleFiles

func (l *Library) ListAccessibleFiles() []FileInLibrary

func (*Library) Print

func (l *Library) Print(out io.Writer)

type TemplateLoader

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

func NewTemplateLoader

func NewTemplateLoader(values interface{}, ui files.UI) *TemplateLoader

func (*TemplateLoader) EvalStarlark

func (l *TemplateLoader) EvalStarlark(library *Library, file *files.File) (starlark.StringDict, error)

func (*TemplateLoader) EvalText

func (l *TemplateLoader) EvalText(library *Library, file *files.File) (starlark.StringDict, interface{}, error)

func (*TemplateLoader) EvalYAML

func (l *TemplateLoader) EvalYAML(library *Library, file *files.File) (starlark.StringDict, interface{}, error)

func (*TemplateLoader) FindCompiledTemplate

func (l *TemplateLoader) FindCompiledTemplate(path string) (*template.CompiledTemplate, error)

func (*TemplateLoader) ListData

func (l *TemplateLoader) ListData(thread *starlark.Thread, f *starlark.Builtin,
	args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func (*TemplateLoader) Load

func (l *TemplateLoader) Load(thread *starlark.Thread, module string) (starlark.StringDict, error)

func (*TemplateLoader) LoadData

func (l *TemplateLoader) LoadData(thread *starlark.Thread, f *starlark.Builtin,
	args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Jump to

Keyboard shortcuts

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