Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
janiltonmaciel committed Sep 3, 2020
1 parent 3458bd7 commit 5f19856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@ func (s *Server) GetHandler() http.Handler {
}

func (s *Server) runHTTP() error {
s.log()
s.logo()
fmt.Printf("\nRunning on HTTP\n ⚡️ http://%s, serving '%s'\n\n", s.config.Address, s.config.Path)
fmt.Print("CTRL-C to stop the️ server\n")
return http.ListenAndServe(s.config.Address, s.handler)
}

func (s *Server) runHTTPS() error {
s.log()
s.logo()
fmt.Printf("\nRunning on HTTPS\n ⚡️ https://%s, serving '%s'\n\n", s.config.Address, s.config.Path)
fmt.Print("CTRL-C to stop the️ server\n")
return http.ListenAndServeTLS(s.config.Address, s.config.Cert, s.config.Key, s.handler)
}

func (s *Server) log() {
func (s *Server) logo() {
fmt.Println(`
_______.___________. ___ .___________. __ __ ___ _______.
/ | | / \ | || | | |/ / / |
Expand Down

0 comments on commit 5f19856

Please sign in to comment.