From 327a32f563394f92313e4a751515d69d90f4e7f5 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 12 Oct 2025 23:30:08 +0530 Subject: formatted code --- customer/controller.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'customer/controller.go') 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) -- cgit v1.2.3