package
1.1.24
Repository: https://github.com/moranilt/http-utils.git
Documentation: pkg.go.dev

# README

Response builder

Default response builder with body and error.

Usage

func CreateUser(w http.ResponseWriter, r *http.Request) {
  type User struct {
    Name string
    Age int
  }

  user := User{
    Name: "John",
    Age: 21,
  }

  SuccessResponse(w, user, http.StatusCreated)
}

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author