Templates Folder not Found in Go Gin Using html/template

I’m having some issues loading templates using Gin. Specifically, after setting up my templates, when I try to run my app with go run main.go I am getting the below error. How do I load the templates correctly? ➜ app git:(main) ✗ go run main.go [GIN-debug] [WARNING] Creating an Engine instance with the Logger and… Read More Templates Folder not Found in Go Gin Using html/template

how to capture values ​of type int – GO, GIN, POSTFORM

I’m building a simple crud integrated with html. My crud consists of a table of products, in my table I have the following fields: package models type Produtos struct { IDProd int `json:”id_Prod” gorm:”primaryKey”` NomeProduto string `json:”nome_produto”` Quantidade int `json:”quantidade”` PrecoProduto int `json:”preco_produto”` } I’m trying to make a fullstack crud, but I’m stuck in… Read More how to capture values ​of type int – GO, GIN, POSTFORM

The function returns nil

I’m a beginner, I wrote a function that checks if in the request pagination.Main == true , then the function returns prod, otherwise prod_2. The default parameter is main == true , but if I change it to false I get "data": null My funcs: func GetAllIproducts(q *models.Products, g *models.Products_2, pagination *models.Params) (*[]models.Products, *[]models.Products_2) {… Read More The function returns nil