functions

package
v0.0.0-...-c879681 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SafeMode = false
View Source
var VanillaBpUUID = "fe9f8597-5454-481a-8730-8d070a8e2e58"
View Source
var VanillaRpUUID = "0575c61f-a5da-4b7f-9961-ffda2908861e"

Functions

func CallFunction

func CallFunction(name string, args []types.JsonType, resolveFunc func(string) types.JsonType) (types.JsonType, error)

func CallInstanceFunction

func CallInstanceFunction(name string, instance types.JsonType, args []types.JsonType, resolveFunc func(string) types.JsonType) (types.JsonType, error)

func FetchCache

func FetchCache() error

func FindMisspelling

func FindMisspelling(name string) *string

func GenerateDocs

func GenerateDocs() error

func HasFunction

func HasFunction(name string) bool

func HasInstanceFunction

func HasInstanceFunction(t reflect.Type, name string) bool

func Init

func Init()

func RegisterArrayFunctions

func RegisterArrayFunctions()

func RegisterAudioFunctions

func RegisterAudioFunctions()

func RegisterColorFunctions

func RegisterColorFunctions()

func RegisterFileFunctions

func RegisterFileFunctions()

func RegisterFunction

func RegisterFunction(fn JsonFunction)

func RegisterGroup

func RegisterGroup(group Group)

func RegisterImageFunctions

func RegisterImageFunctions()

func RegisterJsonPathFunctions

func RegisterJsonPathFunctions()

func RegisterMathFunctions

func RegisterMathFunctions()

func RegisterMinecraftFunctions

func RegisterMinecraftFunctions()

func RegisterScriptFunctions

func RegisterScriptFunctions()

func RegisterSemverFunctions

func RegisterSemverFunctions()

func RegisterStringFunctions

func RegisterStringFunctions()

func RegisterTypeFunctions

func RegisterTypeFunctions()

func SetCacheAll

func SetCacheAll(cache bool)

Types

type Argument

type Argument struct {
	Name     string
	Summary  string
	Optional bool
	VarArgs  bool
}

type Docs

type Docs struct {
	Summary   string
	Arguments []Argument
	Example   string
}

type Group

type Group struct {
	Name    string
	Title   string
	Summary string
}

type JsonFunction

type JsonFunction struct {
	Group      string
	Name       string
	Args       []reflect.Type
	Body       interface{}
	WithError  bool
	IsInstance bool
	IsUnsafe   bool
	IsVarArgs  bool
	Deprecated bool
	Docs       Docs
}

Jump to

Keyboard shortcuts

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