Cleaning some warnings

This commit is contained in:
2025-09-15 19:12:14 +01:00
parent 3514adbea9
commit 27d409ed96
32 changed files with 1292 additions and 184 deletions
+12 -17
View File
@@ -1,19 +1,14 @@
package pages
import (
mod "expenses/expenses/models"
"github.com/gin-gonic/gin"
)
func storeFromForm(c *gin.Context) (*mod.Store, error) {
name := c.PostForm("store-name")
nif := c.PostForm("store-nif")
store := mod.Store{
StoreName: name,
StoreNIF: nif,
}
return &store, nil
}
// func storeFromForm(c *gin.Context) (*mod.Store, error) {
// name := c.PostForm("store-name")
// nif := c.PostForm("store-nif")
//
// store := mod.Store{
// StoreName: name,
// StoreNIF: nif,
// }
//
// return &store, nil
// }
//