filepath

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LineSeparator = "\n"

Variables

View Source
var (
	Importable tengo.Importable = NewFP()
)

Functions

This section is empty.

Types

type ImportFP

type ImportFP struct {
	Attrs map[string]tengo.Object
}

func NewFP

func NewFP() *ImportFP

func (*ImportFP) AsImmutableMap

func (fp *ImportFP) AsImmutableMap(name string) *tengo.ImmutableMap

AsImmutableMap converts builtin module into an immutable map.

func (*ImportFP) Import

func (fp *ImportFP) Import(moduleName string) (interface{}, error)

Import returns an immutable map for the module.

func (*ImportFP) Version

func (fp *ImportFP) Version() string

Jump to

Keyboard shortcuts

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