Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = fmt.Errorf("not found")
Functions ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, r *http.Request, v interface{}, pretty bool)
Types ¶
type BadRequest ¶
type BadRequest struct {
Msg string
}
func (BadRequest) Error ¶
func (e BadRequest) Error() string
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is like bytes.Buffer, but has UnwriteByte method.
func (*Buffer) UnwriteByte ¶
func (w *Buffer) UnwriteByte()
type KeyValue ¶
type KeyValue[K comparable, V any] struct { Key K Value V }
type SortedStat ¶
func (*SortedStat) MarshalJSON ¶
func (st *SortedStat) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.