From 4cb3081998311d51ef0d5ad2596a49b90d3fb29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Mon, 13 Nov 2017 10:38:08 +0100 Subject: [PATCH] BuildPayload -> MakePayload --- json_utility.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.1.2