Documentation ¶ Index ¶ Variables type EvalOptions type Session func NewSession(ctx context.Context) *Session func (s *Session) Eval(ctx context.Context, code string, opts EvalOptions) (reflect.Value, time.Duration, error) func (s *Session) Package(name string) *exportBuilder func (s *Session) Use(exports interp.Exports) Constants ¶ This section is empty. Variables ¶ View Source var ErrCanceled = errors.New("canceled") Functions ¶ This section is empty. Types ¶ type EvalOptions ¶ type EvalOptions struct { OnStdout func([]byte) OnStderr func([]byte) OnPanic func(interface{}) } type Session ¶ type Session struct { // contains filtered or unexported fields } func NewSession ¶ func NewSession(ctx context.Context) *Session func (*Session) Eval ¶ func (s *Session) Eval(ctx context.Context, code string, opts EvalOptions) (reflect.Value, time.Duration, error) func (*Session) Package ¶ func (s *Session) Package(name string) *exportBuilder func (*Session) Use ¶ func (s *Session) Use(exports interp.Exports) Source Files ¶ View all Source files eval.go extend.go session.go Click to show internal directories. Click to hide internal directories.