Documentation
¶
Index ¶
- Variables
- func ConcatWith(master, slave string) string
- func CreateMd5Password(password string) string
- func CreatePassword(password string) string
- func CreateToken(prefix []byte, tailsize int) string
- func GetChangesFor(v interface{}, changes map[string]interface{}) map[string]interface{}
- func GetColumns(v interface{}, alias string, cols []string) []string
- func GetFinalType(v interface{}) (rt reflect.Type)
- func GetIndirectType(v interface{}) (rt reflect.Type)
- func GetNextWorkday(t time.Time) (time.Time, bool)
- func GetNullString(data sql.NullString) (word string)
- func GetPasswordChanges(password string) map[string]interface{}
- func IsHoliday(date string) bool
- func Md5(data string) string
- func NewNullString(word string) sql.NullString
- func NewSerialNo(n byte) string
- func NewTimeSerialNo(n byte, t time.Time) string
- func QuoteColumns(cols []string, sep string, quote func(string) string) string
- func ReduceSpaces(s string) string
- func RemoveSpaces(s string) string
- func ReplaceWith(s string, subs map[string]string) string
- func SetCalendarY2019(cal *calendar.Calendar) *calendar.Calendar
- func SetCalendarY2020(cal *calendar.Calendar) *calendar.Calendar
- func SortedKeys(data interface{}) (keys []string)
- func SprintfString(tpl string, data []string) string
- func StrToList(data []string) []interface{}
- func VerifyPassword(plainText, cipherText string) bool
- func WrapWith(s, left, right string) string
- type ICipher
Constants ¶
This section is empty.
Variables ¶
View Source
var (
WeekEndType = calendar.W_MON_FRI // 双休
)
Functions ¶
func CreateMd5Password ¶
func CreatePassword ¶
func CreateToken ¶
func GetChangesFor ¶
func GetColumns ¶
func GetFinalType ¶
func GetIndirectType ¶
func GetNullString ¶ added in v1.0.5
func GetNullString(data sql.NullString) (word string)
func GetPasswordChanges ¶
func NewNullString ¶ added in v1.0.5
func NewNullString(word string) sql.NullString
string 与 NullString 相互转换
func NewSerialNo ¶
func QuoteColumns ¶ added in v1.0.5
盲转义,认为字段名以小写字母开头
func ReplaceWith ¶
一一对应进行替换,次序不定(因为map的关系)
func SortedKeys ¶ added in v1.0.5
func SortedKeys(data interface{}) (keys []string)
func SprintfString ¶
func VerifyPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.