Documentation ¶
Index ¶
- Constants
- func A(i interface{}) []interface{}
- func Compare(password string, hashedPassword string) bool
- func CompareArray(i1, i2 interface{}) bool
- func Copy(src interface{}) interface{}
- func CopyMap(m map[string]interface{}) map[string]interface{}
- func CopyMapM(m types.M) types.M
- func CopySlice(s []interface{}) []interface{}
- func CopySliceS(s types.S) types.S
- func CreateFileName() string
- func CreateObjectID() string
- func CreateString(n int) string
- func CreateToken() string
- func DeepCopy(i interface{}) interface{}
- func ExtName(filename string) string
- func GetPointer(className, objectId string) types.M
- func HasResults(response types.M) bool
- func Hash(password string) string
- func Iface(iface interface{}) interface{}
- func IsEmail(email string) bool
- func IsFileName(filename string) bool
- func LookupContentType(filename string) string
- func LookupExtension(mimeType string) string
- func M(i interface{}) map[string]interface{}
- func MD5Hash(s string) string
- func S(i interface{}) string
- func StringInSlice(a string, list []string) bool
- func StringtoTime(s string) (time.Time, error)
- func StringtoUnixmilli(s string) (int64, error)
- func TimetoString(t time.Time) string
- func TimetoUnixmilli(t time.Time) int64
- func UnixmillitoString(m int64) string
- func UnixmillitoTime(m int64) time.Time
- func ValidatePolygonPoint(latitude, longitude interface{}) error
Constants ¶
View Source
const ISO8601 = "2006-01-02T15:04:05.000Z"
ISO8601 ...
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy(src interface{}) interface{}
Copy creates a deep copy of whatever is passed to it and returns the copy in an interface{}. The returned value will need to be asserted to the correct type.
func CreateString ¶
func GetPointer ¶
func Iface ¶
func Iface(iface interface{}) interface{}
Iface is an alias to Copy; this exists for backwards compatibility reasons.
func LookupContentType ¶
LookupContentType 查找 ContentType
func StringInSlice ¶
func ValidatePolygonPoint ¶
func ValidatePolygonPoint(latitude, longitude interface{}) error
* Throws an exception if the given lat-long is out of bounds.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.