Skip to content
Myr

Merge pull request #32 from alexandernyquist/master

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

Using template.Must to fix multiple return issue.

authored by Manu Mtz.-Almeida · committed by Manu Mtz.-Almeida · parents a0104c2, 8e7b817 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
258 unmodified lines
259```go260import "html/template"261func main() {262 r := gin.Default()263 html := template.ParseFiles("file1", "file2")263 html := template.Must(template.ParseFiles("file1", "file2"))264 r.HTMLTemplates = html265266 // Listen and server on 0.0.0.0:8080267 r.Run(":8080")
69 unmodified lines