Versions in this module Expand all Collapse all v0 v0.1.12 Oct 18, 2018 Changes in this version + const XlsxTypeCustomers + const XlsxTypeItems + const XlsxTypeTrides + func ReadXlsx(file string, add func(row []string)) error + type Batch struct + Cost int64 + Inventory int + Total int type Item + Batchs []Batch + Cost int64 type Order + Cost int64 type Trade + Cost int64 + func (t *Trade) HasItem(itemID utils.ID) bool type Xlsx + Type int v0.1.11 Oct 14, 2018 v0.1.10 Oct 13, 2018 Changes in this version + func PrintQR(str string) + func Zip(srcDirPath string, destFilePath string) error + type App struct + IsNew bool + Name string + Usage string + Version string + func NewApp(app *cli.App) *App v0.1.9 Oct 12, 2018 Changes in this version type Web + App map[string]string v0.1.8 Oct 11, 2018 Changes in this version + const CustomerIDPrefix + const DayFormat + const ExtIDPrefix + const ItemIDPrefix + const TagIDPrefix + const TradeIDPrefix + const UserIDPrefix + const XlsxIDPrefix + var DaysKey = []byte("days") + var TagKeys = []string + func Axis(col, row int) string + func Download(url, target string) error + func GetIP() (string, error) + func GetURL(address string, tls bool) (string, error) + func Initial(str string) []string + func LastURL(owner, project, tagName string) (string, string, error) + func PC(array [][]string) []string + func Pass(str string) []byte + type Binder interface + Bind func(c echo.Context) error + type Customer struct + Extend map[string]string + Phone string + Tags Tags + Trades []utils.ID + func (c *Customer) BeforePost(key byte) utils.ID + func (c *Customer) BeforePut(id utils.ID) + func (c Customer) Includes(tags []string) bool + func (c Customer) Match(txt string) bool + type Days []string + func (d *Days) Add(day string) bool + func (d *Days) Clean() + func (d *Days) Includes(day string) bool + type Deleter interface + Delete func() + IsDelete func() bool + type Ext struct + Key string + Value string + type HTTPError struct + Error string + Message string + type Includeser interface + Includes func(tags []string) bool + type Item struct + Extend map[string]string + Price int64 + Tags Tags + func (i *Item) BeforePost(key byte) utils.ID + func (i *Item) BeforePut(id utils.ID) + func (i Item) Includes(tags []string) bool + type Matcher interface + Match func(txt string) bool + type Obj struct + Ca time.Time + Da time.Time + ID utils.ID + Name string + Note string + Pinyin string + func (o *Obj) BeforePost(key byte) utils.ID + func (o *Obj) BeforePut(id utils.ID) + func (o *Obj) Delete() + func (o *Obj) IsDelete() bool + func (o Obj) Match(txt string) bool + type Order struct + ID utils.ID + Num int64 + Price int64 + type Paging struct + Data interface{} + Total int + type Poster interface + BeforePost func(key byte) utils.ID + type Puter interface + BeforePut func(id utils.ID) + type Tag struct + Color string + Nums map[string]int + Use map[string]bool + type Tags []string + func (t *Tags) Add(tag string) + func (t *Tags) DelPy() + func (t Tags) Includes(tags []string) bool + func (t Tags) Sort() + type Trade struct + CID utils.ID + Ca time.Time + ID utils.ID + Note string + Orders []Order + Pa time.Time + Status TradeStatus + Total int64 + func (t *Trade) BeforePost(key byte) utils.ID + func (t *Trade) BeforePut(id utils.ID) + type TradeStatus int + type User struct + Admin bool + Extend map[string]string + Pass []byte + Phone string + func (u User) Match(txt string) bool + type Web struct + Db string + Dev bool + LogFile string + Temp string + URL string + func (w *Web) Bind(c echo.Context, o interface{}) error + func (w *Web) Close() + func (w *Web) Delete(key []byte) error + func (w *Web) Get(key []byte, p interface{}) error + func (w *Web) Init() error + func (w *Web) Iterator(prefix []byte, f func(key, value []byte)) error + func (w *Web) ObjDelete(c echo.Context, key byte, check func(id utils.ID) error) error + func (w *Web) ObjDeleter(c echo.Context, key byte, obj Deleter, check func() error) error + func (w *Web) ObjGet(c echo.Context, o interface{}) error + func (w *Web) ObjLoad(c echo.Context, o interface{}) error + func (w *Web) ObjPaging(c echo.Context, i interface{}) error + func (w *Web) ObjPost(c echo.Context, p Poster, key byte, bind func() error, check func() error) error + func (w *Web) ObjPut(c echo.Context, p Puter, key byte, bind func() error, check func() error) error + func (w *Web) ObjSearch(c echo.Context, i interface{}) (interface{}, error) + func (w *Web) ObjSelect(c echo.Context, i interface{}) (interface{}, error) + func (w *Web) Put(key []byte, p interface{}) error + func (w *Web) Reset() error + func (w *Web) Signed(id string, pass []byte) (string, error) + func (w *Web) Start(address string) error + func (w *Web) StartAutoTLS(address string) error + func (w *Web) StartTLS(address, certFile, keyFile string) error + func (w *Web) UserInit() + type Xlsx struct + Map map[int]string