Documentation ¶
Index ¶
- func CommitOrRollback(tx *sql.Tx)
- func PanicIfError(err error)
- func ReadFromRequestBody(request *http.Request, result interface{})
- func ToCategoryResponse(category domain.Category) web.CategoryResponse
- func ToCategoryResponses(categories []domain.Category) []web.CategoryResponse
- func WriteToResponseBody(writer http.ResponseWriter, response interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitOrRollback ¶
func PanicIfError ¶
func PanicIfError(err error)
func ReadFromRequestBody ¶
func ToCategoryResponse ¶
func ToCategoryResponse(category domain.Category) web.CategoryResponse
func ToCategoryResponses ¶
func ToCategoryResponses(categories []domain.Category) []web.CategoryResponse
func WriteToResponseBody ¶
func WriteToResponseBody(writer http.ResponseWriter, response interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.