Help us shape the future of Go! Take the 2026 Go Developer Survey

script

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 8 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   `json:"content"`
	Executor string   `json:"executor"`
	HTML     bool     `json:"is_html"`
	LibKeys  []string `json:"libraries"`
	Name     string   `json:"name"`
	Subject  string   `json:"subject"`
}

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