gobuch/best-practices/project-structure/dependency-sample/cmd/main.go

18 lines
283 B
Go
Raw Permalink Normal View History

2020-08-21 04:26:40 +00:00
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)
}