mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
28 lines
398 B
Go
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()))
|
|
}
|