Documentation ¶
Index ¶
- Constants
- func AbstractCache() cache.AbstractCache
- func Ajax(msg interface{}, errcode int64, this *pine.Context)
- func App() *pine.Application
- func Bytes2String(b []byte) *string
- func GetCallerFuncName() string
- func GetLocation() *time.Location
- func GetMd5(str string) string
- func GetORM() *xorm.Engine
- func GetRandomString(l int) string
- func GetRootPath(relPath ...string) string
- func GetTimeStamp() int
- func GetUrlPrefix(catid int64) string
- func HandleArtListInfo(list []map[string]string, titlelen int)
- func InArray(val interface{}, array interface{}) (exists bool, index int)
- func Inject(key interface{}, v interface{}, single ...bool)
- func IsFalse(args ...interface{}) bool
- func IsWindows() bool
- func Krand(size int, kind int) []byte
- func NewOrmLogFile(path string) *os.File
- func NowDate(str string) string
- func PanicErr(err error, msg ...string)
- func Password(password, encrypt string) string
- func SendEmail(opt *EmailOpt, conf map[string]string) error
- func ToInterfaces(values interface{}) []interface{}
- func UcFirst(str string) string
- type DirInfo
- type EmailOpt
- type FormItemAttr
- type FormItemCascader
- type FormItemCheckbox
- type FormItemCodeEditor
- type FormItemColorPicker
- type FormItemDateTime
- type FormItemDict
- type FormItemInput
- type FormItemMarkdownEditor
- type FormItemNumberInput
- type FormItemRadio
- type FormItemSelect
- type FormItemSlider
- type FormItemSwitch
- type FormItemTags
- type FormItemTransfer
- type FormItemUeditor
- type FormItemUpload
- type FormItemUploadImage
- type Page
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func Bytes2String ¶
func GetLocation ¶
func GetRandomString ¶
func GetUrlPrefix ¶
func HandleArtListInfo ¶
处理文章列表信息数据. 补全一些cms生成
func NewOrmLogFile ¶
func ToInterfaces ¶
func ToInterfaces(values interface{}) []interface{}
Types ¶
type DirInfo ¶
type FormItemDict ¶
type FormItemDict struct {
// contains filtered or unexported fields
}
FormItemDict 字典组件 el-autocomplete
type FormItemInput ¶
type FormItemInput struct { MixLength uint Type string ShowWordLimit bool // contains filtered or unexported fields }
FormItemInput 输入框
type FormItemMarkdownEditor ¶
type FormItemMarkdownEditor struct { }
FormItemMarkdownEditor markdown编辑器
type FormItemNumberInput ¶
type FormItemNumberInput struct { Min float64 `json:"min"` Max float64 `json:"max"` Step float64 `json:"step"` StepStrictly bool `json:"step-strictly"` Precision float64 `json:"precision"` Size string `json:"size"` Controls bool `json:"controls"` // contains filtered or unexported fields }
FormItemNumberInput 数组输入框
type FormItemRadio ¶
type FormItemRadio struct { Options []tables.KV `json:"options"` Disabled bool `json:"disabled"` Size string `json:"size"` Border bool `json:"border"` Label interface{} `json:"label"` // contains filtered or unexported fields }
FormItemRadio 单选框
type FormItemUploadImage ¶
type FormItemUploadImage struct {
FormItemUpload
}
FormItemUploadImage 图片上传
Click to show internal directories.
Click to hide internal directories.