Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- type Command
- type Context
- func (ctx *Context) Arg(i int) string
- func (ctx *Context) Args() []string
- func (ctx *Context) Database() (*sql.Conn, error)
- func (ctx *Context) Get(key string) any
- func (ctx *Context) Location() *time.Location
- func (ctx *Context) NumArg() int
- func (ctx *Context) NumRawArg() int
- func (ctx *Context) RawArg(i int) string
- func (ctx *Context) RawArgs() []string
- func (ctx *Context) Set(key string, value any)
- func (ctx *Context) SetDatabase(db *sql.DB)
- func (ctx *Context) SetLocation(loc *time.Location)
- func (ctx *Context) StartTime(command bool) time.Time
- type HandlerFunc
- type Kind
- type MiddlewareFunc
- type SubCommand
- type SubCommandBucket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) Use ¶
func (cmd *Command) Use(middleware MiddlewareFunc)
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) SetDatabase ¶
func (*Context) SetLocation ¶
type HandlerFunc ¶
type MiddlewareFunc ¶
type MiddlewareFunc func(next HandlerFunc) HandlerFunc
type SubCommand ¶
type SubCommandBucket ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.