common

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(code string) (string, error)

func File

func File(fileName string) string

func Log

func Log(format string, args ...any)

func MakeContext

func MakeContext() (*c.Context, *strings.Builder)

func ParseInupt

func ParseInupt(input string, entrypoint string) any

func ParseInuptIncorrect

func ParseInuptIncorrect(input string, entrypoint string) (any, error)

func Read

func Read(fileName string) []byte

func Text

func Text(input string) []byte

Types

type TestSystem

type TestSystem struct {
	Result strings.Builder
}

func (*TestSystem) OutputError added in v0.0.2

func (t *TestSystem) OutputError(text string)

func (*TestSystem) OutputText added in v0.0.2

func (t *TestSystem) OutputText(text string)

func (*TestSystem) ResolvePath added in v0.0.2

func (t *TestSystem) ResolvePath(context *c.Context, filePath string) (string, error)

Jump to

Keyboard shortcuts

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