Documentation
¶
Overview ¶
Package benchfixture backs the benchmark table in the project README.
Every generated path is paired with the standard-library way of doing the same job — encoding/json for the codecs, a hand-written net/http handler for bind and write, html/template for rendering — and the tests here assert the two halves of each pair produce the same result. A number is only worth quoting if the thing being compared is the same thing.
go test ./internal/benchfixture -run xxx -bench . -benchmem
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
func UserPage ¶
func UserPage(params UserPageParams) htmlbind.Fragment
UserPage binds UserPage to its parameters, producing a renderable fragment.
Types ¶
type CreateUserRequest ¶
type CreateUserResponse ¶
type Order ¶
type UserPageParams ¶
Click to show internal directories.
Click to hide internal directories.