Documentation
¶
Index ¶
- func CWD() string
- func CielInt(a, b uint) int
- func CielInt64(a, b uint) int64
- func CielUint(a, b uint) uint
- func CielUint64(a, b uint) uint64
- func CreateDir(dirs ...string) (err error)
- func CurrentDir() (string, error)
- func FileMove(src string, dst string) (err error)
- func FilterGormError(err error) error
- func GetFileModTime(path string) int64
- func GetFuncName() string
- func IsGormNotFound(err error) bool
- func JSONStringify(in interface{}) (status bool, retStr string)
- func PathExists(path string) (bool, error)
- func PrintArray(title string, in interface{})
- func Printf(title string, value interface{})
- func Println(content string)
- func QrCodeBase64(content string) string
- func RandFloat64() float64
- func RandInt(min int, max int) int
- func RandString(len int) string
- func ReadFileString(filePath string) string
- func StrDeleteSpace(str string) string
- func ZipFiles(filename string, files []string, oldform, newform string) error
- type Crontab
- func (c *Crontab) AddByFunc(id string, spec string, f func()) error
- func (c *Crontab) AddByID(id string, spec string, cmd cron.Job) error
- func (c *Crontab) DelByID(id string)
- func (c *Crontab) IDs() []string
- func (c *Crontab) IsExists(jid string) bool
- func (c *Crontab) Start()
- func (c *Crontab) Stop()
- type Paging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CielUint64 ¶ added in v0.3.2
func CurrentDir ¶
func FilterGormError ¶
func IsGormNotFound ¶
func PathExists ¶
func PrintArray ¶ added in v0.2.9
func PrintArray(title string, in interface{})
func QrCodeBase64 ¶
func RandFloat64 ¶
func RandFloat64() float64
func RandString ¶
func StrDeleteSpace ¶ added in v0.3.7
Types ¶
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
Crontab crontab manager
type Paging ¶
type Paging struct { Page uint //current page number PageSize uint //list items number in per page TotalItem uint //rows number in database TotalPage uint //the count of all pages DBType string //type of database,mysql or postgresql }
func PagingGenerator ¶ added in v0.3.0
func (*Paging) GetQueryBegin ¶
func (*Paging) GetQueryLimit ¶ added in v0.3.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.