Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1132f77249 |
@ -1,4 +1,4 @@
|
|||||||
package httpi
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -19,3 +19,8 @@ func NewServer() *Server {
|
|||||||
func (s *Server) Start() error {
|
func (s *Server) Start() error {
|
||||||
return s.httpServer.ListenAndServe()
|
return s.httpServer.ListenAndServe()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
server := NewServer()
|
||||||
|
server.Start()
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user