mcfunction

package
v0.0.3-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = map[string][]string{}

Functions

func Add

func Add(path string, lines []string) error

func FilepathToResource

func FilepathToResource(path string) (folder, resource string)

func ResourceToFilepath

func ResourceToFilepath(folder_name, resource string) string

Types

type McFunction

type McFunction struct {
	Path    string
	Scanner *bufio.Scanner
	Locals  map[string][]string
	Indent  int
}

func New

func New(path string, scanner *bufio.Scanner, indent int) *McFunction

func (*McFunction) Parse

func (fn *McFunction) Parse() error

Jump to

Keyboard shortcuts

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