Documentation ¶
Index ¶
- func Base64D(urlxxstring string) string
- func Base64E(urlstring string) string
- func CopyFF(src io.Reader, dst io.Writer) error
- func CopyFS(src io.Reader, dst string) error
- func FileStatus(filepath string)
- func GetClientIp(this *context.Context) string
- func GetFileBaseDir() string
- func GetFileSuffix(f string) string
- func GetTime() time.Time
- func GetTimeString() string
- func GetTodayString() string
- func HasFile(s string) bool
- func InArray(sa []string, a string) bool
- func IsDir(filepath string) bool
- func IsFile(filepath string) bool
- func MakeFileDir(s string) (filedir string, err error)
- func Md5(str string) string
- func Pwdhash(str string) string
- func Rawurlencode(str string) string
- func SizeofDir(dirPth string) int
- func StringsToJson(str string) string
- func Strtomd5(s string) string
- func UrlD(s string) string
- func UrlE(s string) string
- func Verify(this *context.Context) bool
- type LocalCache
- type Pager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rawurlencode ¶
func StringsToJson ¶
Types ¶
type LocalCache ¶
type LocalCache struct {
// contains filtered or unexported fields
}
var Cache *LocalCache = NewCache()
func NewCache ¶
func NewCache() *LocalCache
func (*LocalCache) Delete ¶
func (this *LocalCache) Delete(key string) error
func (*LocalCache) Get ¶
func (this *LocalCache) Get(key string) interface{}
func (*LocalCache) IsExist ¶
func (this *LocalCache) IsExist(key string) bool
func (*LocalCache) Put ¶
func (this *LocalCache) Put(key string, val interface{}) error
Click to show internal directories.
Click to hide internal directories.