Add some date to Struct then put this into template GOLANG : > i have a file  controllers/catalog.go it's  a hendlers

    func Catalog(w http.ResponseWriter, r *http.Request) {
    	if r.Method != "GET" {
    		http.Error(w, http.StatusText(405), http.StatusMethodNotAllowed)
    		return
    	}
    
    	categories, err := models.GetCategories()
    	if err != nil {
    		http.Error(w, http.StatusText(500), http.StatusInternalServerError)
    		return
    	}
    	fmt.Print(categories)
    	config.TPL.ExecuteTemplate(w, "catalog.html", categories)
    }

> and  models/getcategories.go 

    type Cat_tree struct {
    	Cat_id    int
    	Parent_id int
    	Cat_name  string
    }
    
    func GetCategories() ([]Cat_tree, error) {
    	rows, err := config.DB.Query("SELECT cat_id, parent_id, cat_name FROM categories WHERE active = true ORDER BY Parent_id ASC")
    	if err != nil {
    		return nil, err
    	}
    	defer rows.Close()
    
    	categories := make([]Cat_tree, 0)
    
    	for rows.Next() {
    		cat := Cat_tree{}
    		err := rows.Scan(&cat.Cat_id, &cat.Parent_id, &cat.Cat_name)
    		if err != nil {
    			return nil, err
    		}
    		categories = append(categories, cat)
    	}
    	if err = rows.Err(); err != nil {
    		return nil, err
    	}
    
    	return categories, nil
    }

How i can add some data to a **categories**    page Title for example

 
Now in template like this

       {{range .}}
        <p><a href="/show?getinfo={{ .Cat_id}}">{{ .Cat_id}}</a> - {{ .Parent_id}} - {{ .Cat_name}} <a href="/show?getinfo={{ .Cat_id}}">Показать</a>
        {{end}}


i'd like to add some  `{{Title}}` 

