Documentation ¶
Index ¶
- Variables
- func AssertObjectKeysEqual(t *testing.T, a, b interface{}, keys ...string)
- func AssertObjectKeysNotEqual(t *testing.T, a, b interface{}, keys ...string)
- func GetErrorMessage(err error) string
- func GetErrorStack(err interface{}) string
- func GetIP(req *http.Request) string
- func HttpError(rw http.ResponseWriter, err error, code int)
- func JoinURL(host string, parts ...string) string
- func LogError(err error, code int)
- func RequireObjectKeysEqual(t *testing.T, a, b interface{}, keys ...string)
- func RequireObjectKeysNotEqual(t *testing.T, a, b interface{}, keys ...string)
- func WriteCreatedJSON(rw http.ResponseWriter, url string, data interface{})
- func WriteError(w http.ResponseWriter, err error)
- func WriteIndentJSON(rw http.ResponseWriter, data interface{})
- func WriteJSON(rw http.ResponseWriter, data interface{})
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AssertObjectKeysEqual ¶
func GetErrorMessage ¶
func GetErrorStack ¶
func GetErrorStack(err interface{}) string
func RequireObjectKeysEqual ¶
func WriteCreatedJSON ¶
func WriteCreatedJSON(rw http.ResponseWriter, url string, data interface{})
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
func WriteIndentJSON ¶
func WriteIndentJSON(rw http.ResponseWriter, data interface{})
func WriteJSON ¶
func WriteJSON(rw http.ResponseWriter, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.