Documentation
¶
Index ¶
- type Interpreter
- func (i *Interpreter) AddIncludeDir(dir string)
- func (i *Interpreter) AddLibrary(lib string)
- func (i *Interpreter) Close() error
- func (i *Interpreter) CompileLibrary(ctx context.Context, code, libraryName string) (string, error)
- func (i *Interpreter) Exec(ctx context.Context, code string) (string, error)
- func (i *Interpreter) ExecWithInput(ctx context.Context, code, input string) (string, error)
- func (i *Interpreter) SetCompiler(compiler string) error
- func (i *Interpreter) SetFlags(flags []string)
- type InterpreterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interpreter ¶
type Interpreter struct {
// contains filtered or unexported fields
}
func NewInterpreter ¶
func NewInterpreter(config InterpreterConfig) (*Interpreter, error)
func (*Interpreter) AddIncludeDir ¶
func (i *Interpreter) AddIncludeDir(dir string)
func (*Interpreter) AddLibrary ¶
func (i *Interpreter) AddLibrary(lib string)
func (*Interpreter) Close ¶
func (i *Interpreter) Close() error
func (*Interpreter) CompileLibrary ¶
func (*Interpreter) ExecWithInput ¶
func (*Interpreter) SetCompiler ¶
func (i *Interpreter) SetCompiler(compiler string) error
func (*Interpreter) SetFlags ¶
func (i *Interpreter) SetFlags(flags []string)
Click to show internal directories.
Click to hide internal directories.