1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/main.go
2016-05-16 03:34:26 -05:00

28 lines
398 B
Go

package main
import (
"fmt"
//"github.com/julienschmidt/httprouter"
"log"
"net/http"
"github.com/mgerb42/mywebsite/model"
"github.com/mgerb42/mywebsite/route"
)
func main() {
s := model.NewSession()
s.TestStore("Mit", "G")
var p []model.Person
p = s.SearchName("Mit")
fmt.Println("Query: ")
fmt.Println(p[0].LastName)
log.Fatal(http.ListenAndServe(":8080", route.Routes()))
}