Documentation ¶
Index ¶
- Constants
- type Context
- func (c *Context) GetBody() ([]byte, error)
- func (c *Context) GetBodyReader() io.ReadCloser
- func (c *Context) GetCookie(key string) string
- func (c *Context) GetFormData(key string) string
- func (c *Context) GetFormFile(key string) (multipart.File, *multipart.FileHeader, error)
- func (c *Context) GetMultipartFile(name string, maxMemoryBytes int64) ([]*multipart.FileHeader, error)
- func (c *Context) GetPathVariable(key string) string
- func (c *Context) GetRemoteAddress() string
- func (c *Context) GetRemoteIpPort() (string, string, error)
- func (c *Context) GetURLQuery(key string) string
- func (c *Context) Redirect(url string, statusCode int)
- func (c *Context) SaveFile(name, path string) error
- func (c *Context) SaveMultipartFile(name string, maxMemoryBytes int64, path string) error
- func (c *Context) SetStatusCode(statusCode int)
- type Lates
- func (l *Lates) AddCssPath(pathes ...string)
- func (l *Lates) AddRouter(method string, path string, handler func(c *Context) templ.Component) error
- func (l *Lates) ApplySakuraDark()
- func (l *Lates) Delete(path string, handler func(c *Context) templ.Component)
- func (l *Lates) Get(path string, handler func(c *Context) templ.Component)
- func (l *Lates) ListenAndServe(addr string) error
- func (l *Lates) ListenAndServe2(addr string) error
- func (l *Lates) Patch(path string, handler func(c *Context) templ.Component)
- func (l *Lates) Post(path string, handler func(c *Context) templ.Component)
- func (l *Lates) Put(path string, handler func(c *Context) templ.Component)
- func (l *Lates) SetHttpServer(server *http.Server)
Constants ¶
View Source
const SakuraDarkCSS = `` /* 4209-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetBodyReader ¶
func (c *Context) GetBodyReader() io.ReadCloser
func (*Context) GetFormData ¶
func (*Context) GetFormFile ¶
func (*Context) GetMultipartFile ¶
func (*Context) GetPathVariable ¶
func (*Context) GetRemoteAddress ¶
func (*Context) GetURLQuery ¶
func (*Context) SaveMultipartFile ¶
func (*Context) SetStatusCode ¶
type Lates ¶
type Lates struct {
// contains filtered or unexported fields
}
func (*Lates) AddCssPath ¶
func (*Lates) ApplySakuraDark ¶
func (l *Lates) ApplySakuraDark()
func (*Lates) ListenAndServe ¶
func (*Lates) ListenAndServe2 ¶
func (*Lates) SetHttpServer ¶
Click to show internal directories.
Click to hide internal directories.