basic test of modules
This commit is contained in:
parent
76e39783d0
commit
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