Skip to content
Myr

add warning using http2 example (#1009)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by 田欧 · committed by Bo-Yi Wu · parent aa6d2d2 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:examples/http2/main.go+5 added
1package main23import (4 "html/template"5 "log"6 "os"78 "github.com/gin-gonic/gin"9)10
8 unmodified lines
19</html>20`))2122func 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!")2526 r := gin.Default()27 r.SetHTMLTemplate(html)2829 r.GET("/welcome", func(c *gin.Context) {
8 unmodified lines