kit

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableLog = false

Functions

func Array added in v1.1.1

func Array(list []string, index int, arg ...interface{}) []string

func Chain added in v1.1.1

func Chain(root interface{}, args ...interface{}) interface{}

func Chains added in v1.1.1

func Chains(root interface{}, args ...interface{}) string

func Create

func Create(p string) (*os.File, string, error)

func Duration added in v1.1.1

func Duration(arg ...string) time.Duration

func Env added in v1.1.1

func Env(key string)

func FmtSize

func FmtSize(size uint64) string

func Format added in v1.1.1

func Format(arg ...interface{}) string

func Formats added in v1.1.1

func Formats(arg ...interface{}) string

func Hash added in v1.1.1

func Hash(arg ...interface{}) (string, []string)

func Hashs added in v1.1.1

func Hashs(arg ...interface{}) string

func Int added in v1.1.1

func Int(arg ...interface{}) int

func Int64 added in v1.1.1

func Int64(arg ...interface{}) int64

func Key added in v1.1.1

func Key(name string) string

func Log added in v1.1.1

func Log(action string, str string, args ...interface{})

func Map

func Map(v interface{}, random string, args ...interface{}) map[string]interface{}

func Pwd

func Pwd() string
func Right(arg ...interface{}) bool

func Select added in v1.1.1

func Select(value string, args ...interface{}) string

func Split

func Split(str string, n int) []string

func Struct added in v1.1.1

func Struct(arg ...interface{}) map[string]interface{}

func Structm added in v1.1.1

func Structm(args ...interface{}) map[string]interface{}

func Time added in v1.1.1

func Time(arg ...string) int

func Trans added in v1.1.1

func Trans(arg ...interface{}) []string

func View added in v1.1.1

func View(args []string, conf map[string]interface{}) []string

func Width added in v1.1.1

func Width(str string, mul int) int

Types

type Frame

type Frame struct {
	Key string
	Run bool
	Pos int

	Done  bool
	Data  interface{}
	Hash  map[string]interface{}
	Label map[string]int
	// contains filtered or unexported fields
}

func (*Frame) String

func (f *Frame) String(meta string) string

type Stack

type Stack struct {
	Target interface{}
	// contains filtered or unexported fields
}

func (*Stack) Hash

func (s *Stack) Hash(key string, val ...interface{}) (interface{}, bool)

func (*Stack) Label

func (s *Stack) Label(key string) (int, bool)

func (*Stack) Peek

func (s *Stack) Peek() *Frame

func (*Stack) Pop

func (s *Stack) Pop() *Frame

func (*Stack) Push

func (s *Stack) Push(key string, run bool, pos int) *Frame

type TERM added in v1.1.1

type TERM interface {
	Show(...interface{}) bool
}
var STDIO TERM

Jump to

Keyboard shortcuts

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