moduleutils

package
v0.0.0-...-95ae90b Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ASTCache       = newASTCache()
	ParserSettings = &parser.Settings{}
)

ASTCache is a global cache of Program AST nodes keyed to a script filename

View Source
var (
	CodeBlockCache = newCodeBlockCache()
)

CodeBlockCache is a global cache of Code Blocks keyed to a script filename

Functions

func CheckArgs

func CheckArgs(name string, expected int, args ...object.Object) *object.Exception

CheckArgs is a convience function to check if the correct number of arguments were supplied

func CheckMinArgs

func CheckMinArgs(name string, expected int, args ...object.Object) *object.Exception

CheckMinArgs is a convience function to check if the minimum number of arguments were supplied

func FileExists

func FileExists(file string) bool

func FileModTime

func FileModTime(file string) time.Time

func IsDir

func IsDir(file string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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