Documentation ¶
Index ¶
- type Writer
- func (w *Writer) Redirect(location string, r *http.Request)
- func (w *Writer) String() string
- func (w *Writer) Write(bytes []byte) (int, error)
- func (w *Writer) WriteHTML(code int, response string)
- func (w *Writer) WriteHeader(code int)
- func (w *Writer) WriteJSON(code int, responseObject any)
- func (w *Writer) WriteSSE(event, data string) error
- func (w *Writer) WriteString(code int, response string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
func NewWriter ¶
func NewWriter(w http.ResponseWriter) *Writer
func (*Writer) WriteHeader ¶
func (*Writer) WriteString ¶
Click to show internal directories.
Click to hide internal directories.