diff --git a/json_utility.go b/json_utility.go index 4f66a9b..d177a53 100644 --- a/json_utility.go +++ b/json_utility.go @@ -93,8 +93,8 @@ func NewPayload(r *http.Request, table string) Payload { return pload } -// BuildPayload returs a payload for provided table with populated Data field. -func BuildPayload(r *http.Request, table string, data interface{}) Payload { +// MakePayload returs a payload for provided table with populated Data field. +func MakePayload(r *http.Request, table string, data interface{}) Payload { var pload Payload pload.Method = r.Method + " " + r.RequestURI