DynamoDB/server/serve/server.go

14 lines
209 B
Go

package serve
import (
"net/http"
)
func (s *Server) Run() error {
return http.ListenAndServe(s.Port, s)
}
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
s.router.ServeHTTP(w, r)
}