Skip to content

Commit

Permalink
Merge pull request #561 from Fenny/master
Browse files Browse the repository at this point in the history
💡 Show possible signatures
  • Loading branch information
Fenny authored Jul 7, 2020
2 parents 7fd584d + cd5ad30 commit 40c7686
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ func (app *App) Listener(ln net.Listener, tlsconfig ...*tls.Config) error {

// Listen serves HTTP requests from the given addr or port.
// You can pass an optional *tls.Config to enable TLS.
//
// - app.Listen(8080)
// - app.Listen("8080")
// - app.Listen(":8080")
// - app.Listen("127.0.0.1:8080")
func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error {
// Convert address to string
addr, ok := address.(string)
Expand Down

0 comments on commit 40c7686

Please sign in to comment.