mirror of https://github.com/gin-gonic/gin.git
docs: update markdown format
This commit is contained in:
parent
a8ce7e4175
commit
e088494408
|
@ -2105,7 +2105,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
|
|
||||||
router.GET("/cookie", func(c *gin.Context) {
|
router.GET("/cookie", func(c *gin.Context) {
|
||||||
|
@ -2149,7 +2148,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
router.SetTrustedProxies([]string{"192.168.1.2"})
|
router.SetTrustedProxies([]string{"192.168.1.2"})
|
||||||
|
|
||||||
|
@ -2176,7 +2174,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
// Use predefined header gin.PlatformXXX
|
// Use predefined header gin.PlatformXXX
|
||||||
router.TrustedPlatform = gin.PlatformGoogleAppEngine
|
router.TrustedPlatform = gin.PlatformGoogleAppEngine
|
||||||
|
|
Loading…
Reference in New Issue