Documentation ¶
Overview ¶
Copyright 2017 by rabbit author: gdccmcm14@live.com. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License
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 Hashcode(asin string) string
- 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 Md5FS(src io.Reader) 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 TripAll(a 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.