Documentation ¶
Index ¶
- Variables
- func AssertNoError(err error)
- func Atof(str string) float64
- func Atoi(str string) int
- func Atol(str string) int64
- func Atou(str string) uint64
- func CamelCase(name string) string
- func Capitalize(str string) string
- func Copy(dest, src interface{})
- func FormatPath(path string) string
- func GetCurrentPath() string
- func GetDateString(date time.Time, short ...bool) string
- func GetDateTimeString(date time.Time, short ...bool) string
- func GetErrorString(code int) string
- func GetFieldIndexMap(clazz reflect.Type) map[string]int
- func GetFieldList(data interface{}) []string
- func GetFieldString(data interface{}) string
- func GetFieldValues(data interface{}) []reflect.Value
- func GetGid() uint64
- func GetHttpEtag(response *http.Response) string
- func GetHttpResult(link string, params ...map[string]string) (*http.Response, error)
- func GetHttpResultEx(method string, link string, params ...map[string]string) (*http.Response, error)
- func GetHttpStatus(response *http.Response) int
- func GetHttpString(link string, params ...map[string]string) (string, error)
- func GetLink(host string, port int, path string, crypted ...bool) string
- func GetSimpleFields(data interface{}) map[string]string
- func GetTimeString(date time.Time, short ...bool) string
- func IsBaseValue(kind reflect.Kind) bool
- func IsFile(filename string) bool
- func IsFloat(kind reflect.Kind) bool
- func IsInt(kind reflect.Kind) bool
- func IsUint(kind reflect.Kind) bool
- func ReadAll(file io.Reader, buffer []byte, timeout ...int64) (int, error)
- func ReadFromHttpResponse(response *http.Response) ([]byte, error)
- func SetFieldValue(field reflect.Value, val string) bool
- func SetSimpleFields(dest interface{}, src map[string]string)
- func Sprint(args ...interface{}) string
- func String(val interface{}) string
- func TimeCost(callback func(), names ...string)
- func Title(str string) string
- func UnderScoreCase(name string) string
- func UnpackZipBuffer(buffer []byte) (map[string][]byte, error)
- func UnpackZipFile(path string) (map[string][]byte, error)
- func WriteAll(file io.Writer, buffer []byte, timeout ...time.Duration) (int, error)
- type CacheMap
- func (m *CacheMap) Capacity() int
- func (m *CacheMap) Clear()
- func (m *CacheMap) Delete(key interface{})
- func (m *CacheMap) Get(key interface{}) (interface{}, bool)
- func (m *CacheMap) Init(maxsz int, timeout time.Duration)
- func (m *CacheMap) Range(proc func(interface{}, interface{}) bool) int
- func (m *CacheMap) Set(key, value interface{})
- func (m *CacheMap) Size() int
- type Exception
- func (err Exception) Code() int
- func (err Exception) Copy(desc ...interface{}) Exception
- func (err Exception) Error() string
- func (err Exception) Extra(fields map[string]interface{}) Exception
- func (err Exception) Fields() map[string]interface{}
- func (err Exception) JsonBuffer() []byte
- func (err Exception) Panic(desc ...interface{})
- func (err Exception) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var AUTHFAIL = Exception{/* contains filtered or unexported fields */}
View Source
var DATAERR = Exception{/* contains filtered or unexported fields */}
View Source
var DAYLIMIT = Exception{/* contains filtered or unexported fields */}
View Source
var DETACHCONN = Exception{/* contains filtered or unexported fields */}
View Source
var DUPLICATE = Exception{/* contains filtered or unexported fields */}
View Source
var ERROR = Exception{/* contains filtered or unexported fields */}
View Source
var FAIL = Exception{/* contains filtered or unexported fields */}
View Source
var IOERR = Exception{/* contains filtered or unexported fields */}
View Source
var NETCLOSE = Exception{/* contains filtered or unexported fields */}
View Source
var NETDELAY = Exception{/* contains filtered or unexported fields */}
View Source
var NETERR = Exception{/* contains filtered or unexported fields */}
View Source
var NOTCHANGED = Exception{/* contains filtered or unexported fields */}
View Source
var NOTFOUND = Exception{/* contains filtered or unexported fields */}
View Source
var OK = Exception{/* contains filtered or unexported fields */}
View Source
var PARAMERR = Exception{/* contains filtered or unexported fields */}
View Source
var RECVFAIL = Exception{/* contains filtered or unexported fields */}
View Source
var SENDFAIL = Exception{/* contains filtered or unexported fields */}
View Source
var SYSBUSY = Exception{/* contains filtered or unexported fields */}
View Source
var SYSERR = Exception{/* contains filtered or unexported fields */}
View Source
var TIMEOUT = Exception{/* contains filtered or unexported fields */}
View Source
var UNINSTALL = Exception{/* contains filtered or unexported fields */}
Functions ¶
func AssertNoError ¶
func AssertNoError(err error)
func Capitalize ¶
func FormatPath ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func GetErrorString ¶
func GetFieldList ¶
func GetFieldList(data interface{}) []string
func GetFieldString ¶
func GetFieldString(data interface{}) string
func GetFieldValues ¶
func GetHttpEtag ¶
func GetHttpResult ¶
func GetHttpResultEx ¶
func GetHttpStatus ¶
func GetSimpleFields ¶
func IsBaseValue ¶
func SetSimpleFields ¶
func UnderScoreCase ¶
Types ¶
type Exception ¶
type Exception struct {
// contains filtered or unexported fields
}
func (Exception) JsonBuffer ¶
Click to show internal directories.
Click to hide internal directories.