mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
18 lines
283 B
Go
18 lines
283 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"golang.source-fellows.com/samples/applicationx/http/rest"
|
||
|
"golang.source-fellows.com/samples/applicationx/postgres"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
us := &postgres.UserService{}
|
||
|
|
||
|
http.HandleFunc("/", rest.Handler(us))
|
||
|
http.ListenAndServe(":8080", nil)
|
||
|
|
||
|
}
|