gobuch/best-practices/project-structure/dependency-sample/cmd/main.go
2020-08-21 06:26:40 +02:00

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)
}