goscript: github.com/matryer/goscript Index | Files

package goscript

import "github.com/matryer/goscript"

Index

Package Files

goscript.go

type Error Uses

type Error struct {
    Err    error
    Stderr string
}

Error represents a Goscript error.

func (Error) Error Uses

func (e Error) Error() string

type Script Uses

type Script struct {
    // contains filtered or unexported fields
}

Script represents a script.

func New Uses

func New(script string) *Script

New makes a new running Script. Caller must call Close.

func (*Script) Close Uses

func (s *Script) Close() error

Close shuts down the script and cleans up any used resources.

func (*Script) Execute Uses

func (s *Script) Execute(args ...interface{}) (interface{}, error)

Execute executes the script with the specified arguments, and returns the response.

Package goscript imports 14 packages (graph) and is imported by 1 packages. Updated 2017-08-01. Refresh now. Tools for package owners.