Documentation ¶
Index ¶
- func WriteJSON(w *fasthttp.RequestCtx, obj any) error
- func WriteString(w *fasthttp.RequestCtx, format string, data []any) (err error)
- type AsciiJSON
- type Data
- type Delims
- type HTML
- type HTMLDebug
- type HTMLProduction
- type IHTMLRender
- type IRender
- type IndentedJSON
- type JSON
- type JsonpJSON
- type PureJSON
- type Reader
- type Redirect
- type SecureJSON
- type String
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteString ¶
func WriteString(w *fasthttp.RequestCtx, format string, data []any) (err error)
Types ¶
type AsciiJSON ¶
type AsciiJSON struct {
Data any
}
func (AsciiJSON) WriteContentType ¶
func (r AsciiJSON) WriteContentType(w *fasthttp.RequestCtx)
type Data ¶
func (Data) WriteContentType ¶
func (r Data) WriteContentType(w *fasthttp.RequestCtx)
type HTML ¶
func (HTML) WriteContentType ¶
func (r HTML) WriteContentType(w *fasthttp.RequestCtx)
type HTMLProduction ¶
type IHTMLRender ¶
type IRender ¶
type IRender interface { Render(*fasthttp.RequestCtx) error WriteContentType(*fasthttp.RequestCtx) }
type IndentedJSON ¶
type IndentedJSON struct {
Data any
}
func (IndentedJSON) Render ¶
func (r IndentedJSON) Render(w *fasthttp.RequestCtx) error
func (IndentedJSON) WriteContentType ¶
func (r IndentedJSON) WriteContentType(w *fasthttp.RequestCtx)
type JSON ¶
type JSON struct {
Data any
}
func (JSON) WriteContentType ¶
func (r JSON) WriteContentType(w *fasthttp.RequestCtx)
type JsonpJSON ¶
func (JsonpJSON) WriteContentType ¶
func (r JsonpJSON) WriteContentType(w *fasthttp.RequestCtx)
type PureJSON ¶
type PureJSON struct {
Data any
}
func (PureJSON) WriteContentType ¶
func (r PureJSON) WriteContentType(w *fasthttp.RequestCtx)
type Reader ¶
type Reader struct { ContentType string ContentLength int64 Reader io.Reader Headers map[string]string }
func (Reader) WriteContentType ¶
func (r Reader) WriteContentType(w *fasthttp.RequestCtx)
type Redirect ¶
func (Redirect) WriteContentType ¶
func (r Redirect) WriteContentType(*fasthttp.RequestCtx)
type SecureJSON ¶
func (SecureJSON) Render ¶
func (r SecureJSON) Render(w *fasthttp.RequestCtx) error
func (SecureJSON) WriteContentType ¶
func (r SecureJSON) WriteContentType(w *fasthttp.RequestCtx)
type String ¶
func (String) WriteContentType ¶
func (r String) WriteContentType(w *fasthttp.RequestCtx)
type XML ¶
type XML struct {
Data any
}
func (XML) WriteContentType ¶
func (r XML) WriteContentType(w *fasthttp.RequestCtx)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.