kit

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableLog = false
View Source
var EnableDebug = false

Functions

func Array added in v1.1.1

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

func Block added in v1.1.1

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

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 Check

func Check(e error) bool

func Debugf added in v1.1.1

func Debugf(str string, args ...interface{})

func DirWalk

func DirWalk(file string, hand func(file string))

func Duration added in v1.1.1

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

func Elect added in v1.1.1

func Elect(last interface{}, args ...interface{}) string

func Env added in v1.1.1

func Env(key string)

func Errorf added in v1.1.1

func Errorf(str string, args ...interface{})

func FileName added in v1.1.1

func FileName(name string, meta ...string) string

func FmtNano

func FmtNano(nano int64) 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 Len added in v1.1.1

func Len(arg interface{}) int
func Link(name string, url string) string

func Log added in v1.1.1

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

func Select added in v1.1.1

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

func Simple added in v1.1.1

func Simple(str string) string

func Slice added in v1.1.1

func Slice(arg []string, args ...interface{}) ([]string, 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 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