Documentation ¶
Index ¶
- Constants
- Variables
- func AjaxPageList(count, pageCount, takeNum, pageIndex int) string
- func FilterSQL(sql string) string
- func GetRequestInt(r *http.Request, key string) int
- func GetRequestStr(r *http.Request, key string) string
- func If(b bool, t, f interface{}) interface{}
- func JsonDecode(json string) string
- func JsonEncode(json string) string
- func MD5(data string) string
- func New() string
- func NewGuid() string
- func NewLen(length int) string
- func NewLenChars(length int, chars []byte) string
- func NoHTML(htmlstring string) string
- func SHA1(data string) string
- func SubString(str string, begin, length int) (substr string)
- func ToDBC(input string) string
- func ToInt(obj interface{}) int
- func ToSBC(input string) string
- func ToStr(obj interface{}) string
- func VerifyCode(w http.ResponseWriter) (string, []byte)
- type Image
Constants ¶
View Source
const ( StdLen = 16 UUIDLen = 20 )
Variables ¶
View Source
var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
Functions ¶
func AjaxPageList ¶
func JsonDecode ¶
func JsonEncode ¶
func NewLenChars ¶
func VerifyCode ¶
func VerifyCode(w http.ResponseWriter) (string, []byte)
Types ¶
Click to show internal directories.
Click to hide internal directories.