mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 04:57:07 +08:00
Merge 592af3026c09cf2110b3295806b903d6cf4f7be5 into 5eb0e10a78a29c69678d1e6bfca6b1ca8016be95
This commit is contained in:
commit
9c7413f300
@ -43,6 +43,8 @@ import "github.com/gin-gonic/gin"
|
|||||||
|
|
||||||
#### Create most basic PING/PONG HTTP endpoint
|
#### Create most basic PING/PONG HTTP endpoint
|
||||||
```go
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
import "github.com/gin-gonic/gin"
|
import "github.com/gin-gonic/gin"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -258,6 +260,7 @@ You can also use your own html template render
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
import "html/template"
|
import "html/template"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
html := template.Must(template.ParseFiles("file1", "file2"))
|
html := template.Must(template.ParseFiles("file1", "file2"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user