Documentation
¶
Index ¶
- Variables
- func FirstValueInList(list []string) zero.Rule
- func Init(c Config)
- func Min(a, b int) int
- type Config
- type Pool
- type Sqlite
- func (db *Sqlite) Create(table string, objptr interface{}) (err error)
- func (db *Sqlite) Delete(table string, condition string) (err error)
- func (db *Sqlite) Insert(table string, objptr interface{}) (err error)
- func (db *Sqlite) Num(table string) (num int, err error)
- func (db *Sqlite) Select(table string, objptr interface{}, condition string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
POOL = NewPools()
)
Functions ¶
func FirstValueInList ¶
FirstValueInList 判断正则匹配的第一个参数是否在列表中
Types ¶
type Pool ¶
type Pool struct { Lock sync.Mutex DB *Sqlite Path string Group int64 List []string Max int Pool map[string][]*pixiv.Illust Form int64 }
Pools 图片缓冲池
Click to show internal directories.
Click to hide internal directories.