Documentation ¶ Index ¶ Variables func SetupHTTP() func TeardownHTTP() func URL() string Constants ¶ This section is empty. Variables ¶ View Source var ( // Mux is a multiplexer that can be used to register handlers. Mux *http.ServeMux // Server is an in-memory HTTP server for testing. Server *httptest.Server ) Functions ¶ func SetupHTTP ¶ func SetupHTTP() SetupHTTP prepares the Mux and Server. func TeardownHTTP ¶ func TeardownHTTP() TeardownHTTP releases HTTP-related resources. func URL ¶ func URL() string URL returns a fake URL that will actually target the Mux. Types ¶ This section is empty. Source Files ¶ View all Source files http.go Directories ¶ Show internal Expand all Path Synopsis client Click to show internal directories. Click to hide internal directories.