Documentation ¶
Index ¶
- Constants
- func CSV(file string, limit int, ...) error
- func Capital(str string) string
- func Contains(str, sub interface{}) bool
- func Create(p string) (*os.File, string, error)
- func Data(arg ...interface{}) map[string]interface{}
- func Dict(arg ...interface{}) map[string]interface{}
- func Duration(str interface{}) time.Duration
- func Ext(str string) string
- func ExtIsImage(str string) bool
- func Fetch(val interface{}, cbs interface{}) interface{}
- func Fields(arg ...interface{}) string
- func FileExists(name string) bool
- func FileLine(p interface{}, n int) string
- func FileName(p interface{}) string
- func FmtSize(size int64) string
- func FmtTime(t int64) string
- func ForEach(arg []string, cb func(string))
- func Format(val interface{}, arg ...interface{}) string
- func FormatKV(data map[string]interface{}, args ...string) string
- func Formats(val interface{}) string
- func FuncName(p interface{}) string
- func GetMeta(value map[string]interface{}) map[string]interface{}
- func Hash(arg ...interface{}) (string, []string)
- func Hashs(arg ...interface{}) string
- func IndexOf(str []string, sub string) int
- func Int(val interface{}) int
- func Int64(val interface{}) int64
- func Join(str []string, arg ...string) string
- func KeyExtra(arg ...interface{}) string
- func KeyHash(arg ...interface{}) string
- func KeyValue(res map[string]interface{}, key string, arg interface{}) map[string]interface{}
- func Keycb(arg ...interface{}) string
- func Keym(arg ...interface{}) string
- func Keys(arg ...interface{}) string
- func List(arg ...interface{}) []interface{}
- func MergePOD(str string, pod string) string
- func MergeURL(str string, arg ...interface{}) string
- func MergeURL2(str string, uri string, arg ...interface{}) string
- func ModName(p interface{}) string
- func ModPath(p interface{}, arg ...string) string
- func Parse(value interface{}, key string, val ...string) interface{}
- func ParseURL(str string) *url.URL
- func ParseURLMap(str string) map[string]string
- func Path(str string, rest ...string) string
- func PathName(p interface{}) string
- func Pwd() string
- func Regexp(arg string) *regexp.Regexp
- func Render(str string, arg interface{}) (b []byte, e error)
- func Replace(str string, from string, to string) string
- func Revert(str []string) []string
- func Rewrite(file string, cb func(string) string) error
- func Select(def string, arg ...interface{}) string
- func ShortKey(list map[string]interface{}, min int, arg ...interface{}) string
- func Simple(val ...interface{}) []string
- func Slice(list []string, index ...int) []string
- func Sort(list []string) []string
- func Split(str string, arg ...string) (res []string)
- func Time(arg ...string) int64
- func TransArg(arg []string, key string, trans map[string]string) []string
- func TrimExt(str string, ext ...string) string
- func UnMarshal(data string) interface{}
- func Value(root interface{}, args ...interface{}) interface{}
- func Width(str string, mul int) int
Constants ¶
View Source
const ( MIME_FORM = "application/x-www-form-urlencoded" MIME_FILE = "application/octet-stream" MIME_JSON = "application/json" MIME_TEXT = "text/plain" MIME_HTML = "text/html" MIME_PNG = "image/png" )
View Source
const ( META_SOURCE = "meta.source" META_FIELD = "meta.field" META_PATH = "meta.path" )
View Source
const ( // 结构 MDB_DICT = "dict" MDB_META = "meta" MDB_HASH = "hash" MDB_LIST = "list" MDB_FOREACH = "*" MDB_RANDOMS = "%" // 显示 MDB_TEMPLATE = "template" MDB_CONTENT = "content" MDB_TIMEOUT = "timeout" MDB_BUTTON = "button" MDB_SCRIPT = "script" MDB_TRANS = "trans" MDB_TITLE = "title" MDB_TOPIC = "topic" MDB_STYLE = "style" MDB_COLOR = "color" MDB_IMAGE = "image" MDB_VIDEO = "video" // 程序 MDB_PREFIX = "prefix" MDB_DOMAIN = "domain" MDB_STATUS = "status" MDB_STREAM = "stream" MDB_ACTION = "action" MDB_BEFORE = "before" MDB_EXPIRE = "expire" MDB_REGEXP = "regexp" MDB_ALIAS = "alias" MDB_EVENT = "event" MDB_ERROR = "error" MDB_STACK = "stack" MDB_CHAIN = "chain" MDB_LEVEL = "level" MDB_MAIN = "main" MDB_ARGS = "args" MDB_COST = "cost" MDB_CODE = "code" MDB_MAKE = "make" MDB_FROM = "from" MDB_SHIP = "ship" MDB_BACK = "back" MDB_STEP = "step" MDB_MENU = "menu" // 存储 MDB_SHORT = "short" MDB_FIELD = "field" MDB_STORE = "store" MDB_FSIZE = "fsize" MDB_TOTAL = "total" MDB_COUNT = "count" MDB_LIMIT = "limit" MDB_LEAST = "least" MDB_TABLE = "table" MDB_INDEX = "index" MDB_VALUE = "value" MDB_EXTRA = "extra" // 文件 MDB_PROTO = "proto" MDB_LINK = "link" MDB_PATH = "path" MDB_FILE = "file" MDB_LINE = "line" MDB_DATA = "data" MDB_SIZE = "size" // 数据 MDB_SCAN = "scan" MDB_HELP = "help" MDB_TEXT = "text" MDB_NAME = "name" MDB_TYPE = "type" MDB_ZONE = "zone" MDB_TIME = "time" MDB_KEY = "key" MDB_ID = "id" )
View Source
const ( SSH_ROUTE = "route" SSH_REPOS = "repos" SSH_SOURCE = "source" SSH_BRANCH = "branch" SSH_MASTER = "master" )
Variables ¶
This section is empty.
Functions ¶
func CSV ¶
func Fetch ¶
func Fetch(val interface{}, cbs interface{}) interface{}
func KeyValue ¶
func List ¶
func List(arg ...interface{}) []interface{}
func Value ¶
func Value(root interface{}, args ...interface{}) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.