sh

package
v0.0.0-...-bd11f57 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceSlice

func InterfaceSlice(in interface{}) []interface{}

func Struct2Array

func Struct2Array(x interface{}) []string

func StructKeys

func StructKeys(x interface{}) []string

func TabWrite

func TabWrite(in interface{})

func Unmarshal

func Unmarshal(reader *Reader, v interface{}) error

Types

type Command

type Command struct {
	Script string
}

func (*Command) Lines

func (c *Command) Lines() ([]string, error)

func (*Command) Mock

func (c *Command) Mock() []string

func (*Command) Ok

func (c *Command) Ok() string

func (*Command) Print

func (c *Command) Print()

func (*Command) Run

func (c *Command) Run() (string, error)

func (*Command) Text

func (c *Command) Text() string

type Field

type Field struct {
	Start int
	End   int
	Name  string
}

type Reader

type Reader struct {
	Line int

	R []string
	// contains filtered or unexported fields
}

func NewReader

func NewReader(in []string, pattern interface{}) *Reader

func (*Reader) Read

func (r *Reader) Read() (record string, err error)

Jump to

Keyboard shortcuts

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