mirror of https://github.com/gin-gonic/gin.git
README: gofmt the code examples
This commit is contained in:
parent
5eb0e10a78
commit
592af3026c
|
@ -43,6 +43,8 @@ import "github.com/gin-gonic/gin"
|
|||
|
||||
#### Create most basic PING/PONG HTTP endpoint
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func main() {
|
||||
|
@ -258,6 +260,7 @@ You can also use your own html template render
|
|||
|
||||
```go
|
||||
import "html/template"
|
||||
|
||||
func main() {
|
||||
r := gin.Default()
|
||||
html := template.Must(template.ParseFiles("file1", "file2"))
|
||||
|
|
Loading…
Reference in New Issue