Add full example app (#204) Also, remove the other examples and simplify the readme.
1 file changed, 18 insertions(+), 0 deletions(-)
changed files
A internal/examples/app/http/server.go
@@ -0,0 +1,18 @@ +package http + +import ( + "net/http" +) + +func Start() error { + return http.ListenAndServe(":8080", setupRoutes()) +} + +func setupRoutes() http.Handler { + mux := http.NewServeMux() + + Home(mux) + About(mux) + + return mux +}