Skip to content

internal/http/response

github.com/gamidoc/backend/internal/http/response

Types

ErrorBody

type ErrorBody struct {

ErrorDetail

type ErrorDetail struct {

Functions

WriteError

func WriteError(w http.ResponseWriter, status int, code string, message string, details map[string]any) {

WriteJSON

func WriteJSON(w http.ResponseWriter, status int, value any) {