luaformatter

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedType represents the Unsupported Type error
	ErrUnsupportedType = errors.New("unsupported type")
	// ErrTableIsNil represents TableIsNil error
	ErrTableIsNil = errors.New("table is nil")
	// ErrKeyMustBeAString represents KeyMustBeAString error
	ErrKeyMustBeAString = errors.New("key must be a string")
	// ErrWrongValue represents WrongValue error
	ErrWrongValue = errors.New("value must be a string, number, boolean or table")
	// ErrUnexpectedDataLoss represents UnexpectedDataLoss error
	ErrUnexpectedDataLoss = errors.New("unexpected data loss")
	// ErrUnexpectedDuplicatedKey represents UnexpectedDuplicatedKey error
	ErrUnexpectedDuplicatedKey = errors.New("unexpected duplicated key")
)

Functions

func TableToString

func TableToString(table *lua.LTable) (string, error)

TableToString convert lua table to the string

func ValueToString

func ValueToString(v lua.LValue) (string, error)

ValueToString convert lua value to the string, return error of occurred

func ValueToStringNoErr

func ValueToStringNoErr(value lua.LValue) string

ValueToStringNoErr converts lua value to the string without fire error

func ValuesToString

func ValuesToString(values []lua.LValue) (string, error)

ValuesToString converts lua values to the string, and error if occurred

func ValuesToStringNoErr

func ValuesToStringNoErr(values []lua.LValue) string

ValuesToStringNoErr converts lua values to the string without fire error

Types

This section is empty.

Jump to

Keyboard shortcuts

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