diff options
Diffstat (limited to 'customer/controller.go')
| -rw-r--r-- | customer/controller.go | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/customer/controller.go b/customer/controller.go index 83423da..b9b2b25 100644 --- a/customer/controller.go +++ b/customer/controller.go @@ -18,13 +18,13 @@  package customer  import ( -	e "vidhukant.com/openbills/errors"  	"github.com/gin-gonic/gin"  	"net/http"  	"strconv" +	e "vidhukant.com/openbills/errors"  ) -func handleGetSingleCustomer (ctx *gin.Context) { +func handleGetSingleCustomer(ctx *gin.Context) {  	id, err := strconv.ParseUint(ctx.Param("id"), 10, 64)  	if err != nil {  		ctx.Error(e.ErrInvalidID) @@ -44,7 +44,7 @@ func handleGetSingleCustomer (ctx *gin.Context) {  	})  } -func handleGetCustomers (ctx *gin.Context) { +func handleGetCustomers(ctx *gin.Context) {  	var customers []Customer  	err := getCustomers(&customers) @@ -59,7 +59,7 @@ func handleGetCustomers (ctx *gin.Context) {  	})  } -func handleSaveCustomer (ctx *gin.Context) { +func handleSaveCustomer(ctx *gin.Context) {  	var customer Customer  	ctx.Bind(&customer) @@ -75,7 +75,7 @@ func handleSaveCustomer (ctx *gin.Context) {  	})  } -func handleDelCustomer (ctx *gin.Context) { +func handleDelCustomer(ctx *gin.Context) {  	id, err := strconv.ParseUint(ctx.Param("id"), 10, 64)  	if err != nil {  		ctx.Error(e.ErrInvalidID)  |