You've already forked golang-base-project
Improves documentation (#13)
* Documents all env variables and adds an example project * Adds godoc comments * Fixed package naming issue
This commit is contained in:
@ -8,11 +8,13 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SearchData holds additional data needed to render the search HTML page
|
||||
type SearchData struct {
|
||||
PageData
|
||||
Results []models.Website
|
||||
}
|
||||
|
||||
// Search renders the search HTML page and any search results
|
||||
func (controller Controller) Search(c *gin.Context) {
|
||||
pd := SearchData{
|
||||
PageData: PageData{
|
||||
|
Reference in New Issue
Block a user