Documentation
¶
Index ¶
- Variables
- func CamelToSnake(s string) string
- func ConvertBytesToHuman(bytes int) string
- func HttpRequest(req *http.Request) ([]byte, error)
- func HttpResponse(w http.ResponseWriter, status int, message any) error
- func HttpTest(t *testing.T, method string, handler VercelHandler, params url.Values)
- func ReadFrom[T any](reader io.ReadCloser) (*T, error)
- func ReadParamsFromQuery[T any](queryParams url.Values) (*T, error)
- type VercelHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient = &http.Client{}
Functions ¶
func CamelToSnake ¶
func ConvertBytesToHuman ¶
func HttpResponse ¶
func HttpResponse(w http.ResponseWriter, status int, message any) error
Types ¶
type VercelHandler ¶
type VercelHandler func(http.ResponseWriter, *http.Request)
Click to show internal directories.
Click to hide internal directories.