mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
17 lines
311 B
Go
17 lines
311 B
Go
package rest
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"time"
|
|
|
|
"golang.source-fellows.com/samples/applicationx"
|
|
)
|
|
|
|
func Handler(us applicationx.UserService) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
us.CreateUser(&applicationx.User{})
|
|
fmt.Fprintf(w, "Hello World! %s", time.Now())
|
|
}
|
|
}
|