We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6d2d2 commit bbd4dfeCopy full SHA for bbd4dfe
examples/http2/main.go
@@ -2,6 +2,8 @@ package main
2
3
import (
4
"html/template"
5
+ "log"
6
+ "os"
7
8
"github.com/gin-gonic/gin"
9
)
@@ -18,6 +20,9 @@ var html = template.Must(template.New("https").Parse(`
18
20
`))
19
21
22
func main() {
23
+ logger := log.New(os.Stderr, "", 0)
24
+ logger.Println("[WARNING] DON'T USE THE EMBED CERTS FROM THIS EXAMPLE IN PRODUCTION ENVIRONMENT, GENERATE YOUR OWN!")
25
+
26
r := gin.Default()
27
r.SetHTMLTemplate(html)
28
0 commit comments