script

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_PATTERN      = "--*"
	LIBRARY_FOLDER_NAME = "libs"
)

Variables

This section is empty.

Functions

func ReadScriptDirectory added in v0.4.0

func ReadScriptDirectory(dirname string, recurse bool) (map[string]map[string]*Script, error)

Types

type Script

type Script struct {
	Content  []byte
	Executor string
	HTML     bool
	LibKeys  []string
	Name     string
	Subject  string
}

func ReadFile added in v0.4.0

func ReadFile(filename string) (*Script, error)

func ReadLibraryDirectory added in v0.4.0

func ReadLibraryDirectory(dirname string) ([]*Script, error)

func ReadString added in v0.4.0

func ReadString(content string) (*Script, error)

func (*Script) Read added in v0.2.3

func (s *Script) Read(f io.Reader) error

Jump to

Keyboard shortcuts

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