You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
345 B

package Webserver
import (
"log"
"net/http"
"PersonalWebsite/Database"
)
func ViewIndex(w http.ResponseWriter, r *http.Request) {
var (
v = make(map[string]interface{})
e error
)
v["SidebarLinks"], e = Database.GetAllSidebarLinks()
if e != nil {
// TODO: Handle
log.Fatal(e)
}
ServeTemplate(w, r, "html/index.gohtml", v)
}