-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
25 lines (22 loc) · 685 Bytes
/
main.go
File metadata and controls
25 lines (22 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import (
"fmt"
"github.com/jeffcail/sql2orm/handler"
"log"
"net/http"
)
const BANNER = `
.__ ________
___________| | \_____ \ ___ ______________ _____
/ ___/ ____/ | / ____/ \ \/ / _ \_ __ \/ \
\___ < <_| | |__/ \ > < <_> ) | \/ Y Y \
/____ >__ |____/\_______ \/__/\_ \____/|__| |__|_| /
\/ |__| \/ \/ \/
`
func main() {
http.HandleFunc("/gen", handler.GenerateHandler)
http.Handle("/", http.FileServer(http.Dir("dist")))
fmt.Printf("%s", BANNER)
fmt.Println("listening on :7892")
log.Fatal(http.ListenAndServe(":7892", nil))
}