sh

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: Apache-2.0 Imports: 2 Imported by: 9 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StringType objType = iota + 1
	FnType
	ListType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn interface {
	Name() string
	ArgNames() []string

	Runner

	String() string
}

type FnObj

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

func NewFnObj

func NewFnObj(val Fn) *FnObj

func (*FnObj) Fn

func (o *FnObj) Fn() Fn

func (*FnObj) String

func (o *FnObj) String() string

func (FnObj) Type

func (o FnObj) Type() objType

type ListObj

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

func NewListObj

func NewListObj(val []Obj) *ListObj

func (*ListObj) List

func (o *ListObj) List() []Obj

func (*ListObj) String

func (o *ListObj) String() string

func (ListObj) Type

func (o ListObj) Type() objType

type Obj

type Obj interface {
	Type() objType
	String() string
}

type Runner

type Runner interface {
	Start() error
	Wait() error
	Results() Obj

	SetArgs([]Obj) error
	SetEnviron([]string)
	SetStdin(io.Reader)
	SetStdout(io.Writer)
	SetStderr(io.Writer)

	StdoutPipe() (io.ReadCloser, error)

	Stdin() io.Reader
	Stdout() io.Writer
	Stderr() io.Writer
}

type StrObj

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

func NewStrObj

func NewStrObj(val string) *StrObj

func (*StrObj) Str

func (o *StrObj) Str() string

func (*StrObj) String

func (o *StrObj) String() string

func (StrObj) Type

func (o StrObj) Type() objType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL