Documentation ¶
Index ¶
- Constants
- func CSV(file string, limit int, ...) error
- func Capital(str string) string
- func Close(p interface{})
- 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 Env(key string) string
- 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 HashsPath(arg ...interface{}) string
- func HomePath(str string, rest ...string) 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 Max(list ...int) (max int)
- func MergePOD(url string, pod string, arg ...interface{}) 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 Now(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 ReadFile(p string) string
- func Reflect(obj interface{}, cb func(name string, value interface{})) (reflect.Type, reflect.Value)
- func Regexp(arg string) *regexp.Regexp
- func Render(str string, arg interface{}) (b []byte, e error)
- func Replace(str string, arg ...string) string
- func ReplaceAll(str string, arg ...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 SimpleKV(key string, arg ...interface{}) (res []string)
- func Slice(list []string, index ...int) []string
- func Sort(list []string, cb ...func(a, b string) bool) []string
- func SortedKey(obj interface{}) (res []string)
- func Split(str string, arg ...string) (res []string)
- func Time(arg ...string) int64
- func TransArg(arg []string, key string, trans interface{}) []string
- func TrimExt(str string, ext ...string) string
- func UnMarshal(data string) interface{}
- func UserName() string
- func Value(root interface{}, args ...interface{}) interface{}
- func Width(str string, mul int) int
- func WriteFile(p string, value interface{}) string
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 ( // 结构 MDB_DICT = "dict" MDB_META = "meta" MDB_HASH = "hash" MDB_LIST = "list" MDB_FOREACH = "*" MDB_RANDOMS = "%" // 存储 MDB_SHORT = "short" MDB_FIELD = "field" MDB_TOTAL = "total" MDB_COUNT = "count" MDB_LIMIT = "limit" MDB_LEAST = "least" MDB_STORE = "store" MDB_FSIZE = "fsize" // 索引 MDB_INDEX = "index" MDB_VALUE = "value" MDB_EXTRA = "extra" MDB_ALIAS = "alias" MDB_EXPIRE = "expire" MDB_STATUS = "status" MDB_STREAM = "stream" // 文件 MDB_LINK = "link" MDB_SCAN = "scan" MDB_SHOW = "show" MDB_HELP = "help" MDB_DATA = "data" MDB_PATH = "path" MDB_FILE = "file" MDB_LINE = "line" MDB_SIZE = "size" MDB_COST = "cost" // 数据 MDB_TEXT = "text" MDB_NAME = "name" MDB_TYPE = "type" MDB_ZONE = "zone" MDB_TIME = "time" MDB_KEY = "key" MDB_ID = "id" )
Variables ¶
This section is empty.
Functions ¶
func CSV ¶
func Close ¶ added in v0.5.0
func Close(p interface{})
func Fetch ¶
func Fetch(val interface{}, cbs interface{}) interface{}
func KeyValue ¶
func List ¶
func List(arg ...interface{}) []interface{}
func Reflect ¶ added in v0.5.7
func Value ¶
func Value(root interface{}, args ...interface{}) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.