Documentation
¶
Index ¶
- Variables
- type Gozero
- type Options
- type Source
- func NewSource() (*Source, error)
- func NewSourceWithBytes(src []byte, wantedPattern, dir string) (*Source, error)
- func NewSourceWithFile(src string) (*Source, error)
- func NewSourceWithReader(src io.Reader, wantedPattern, dir string) (*Source, error)
- func NewSourceWithString(src, wantedPattern, dir string) (*Source, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoValidEngine is returned when no valid engine is found ErrNoValidEngine = errors.New("no valid engine found") // ErrNoEngines is returned when no engines are provided ErrNoEngines = errors.New("no engines provided") )
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
Variables []types.Variable
Temporary bool
CloseAfterWrite bool
Filename string
File *os.File
}
Source is a source file for gozero and is meant to contain i/o for code execution
func NewSourceWithBytes ¶
func NewSourceWithFile ¶
func NewSourceWithReader ¶
func NewSourceWithString ¶
func (*Source) AddVariable ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmdexec package is wrapper around os/exec and handles common use cases while executing commands.
|
cmdexec package is wrapper around os/exec and handles common use cases while executing commands. |
|
examples
|
|
|
simple_darwin
command
|
|
|
simple_linux
command
|
|
|
simple_windows
command
|
|
Click to show internal directories.
Click to hide internal directories.