Documentation
¶
Overview ¶
Package autotls support Let's Encrypt for a Go server application.
package main
import (
"log"
"github.com/go-ego/autotls"
"github.com/go-ego/ego"
)
func main() {
r := ego.Default()
// Ping handler
r.GET("/ping", func(c *ego.Context) {
c.String(200, "pong")
})
log.Fatal(autotls.Run(r, "example1.com", "example2.com"))
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.