File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -365,13 +365,13 @@ func main() {
365
365
366
366
templates, err = template.ParseFiles (allFiles...) #parses all .tmpl files in the ' templates' folder
367
367
368
- s1 , _ := templates.LookUp (" header.tmpl" )
368
+ s1 := templates.Lookup (" header.tmpl" )
369
369
s1.ExecuteTemplate (os.Stdout , " header" , nil )
370
370
fmt.Println ()
371
- s2 , _ := templates.LookUp (" content.tmpl" )
371
+ s2 := templates.Lookup (" content.tmpl" )
372
372
s2.ExecuteTemplate (os.Stdout , " content" , nil )
373
373
fmt.Println ()
374
- s3 , _ := templates.LookUp (" footer.tmpl" )
374
+ s3 := templates.Lookup (" footer.tmpl" )
375
375
s3.ExecuteTemplate (os.Stdout , " footer" , nil )
376
376
fmt.Println ()
377
377
s3.Execute (os.Stdout , nil )
Original file line number Diff line number Diff line change @@ -364,13 +364,13 @@ Código:
364
364
365
365
templates, err = template.ParseFiles(allFiles...) #parses all .tmpl files in the 'templates' folder
366
366
367
- s1, _ := templates.LookUp ("header.tmpl")
367
+ s1 := templates.Lookup ("header.tmpl")
368
368
s1.ExecuteTemplate(os.Stdout, "header", nil)
369
369
fmt.Println()
370
- s2, _ := templates.LookUp ("content.tmpl")
370
+ s2 := templates.Lookup ("content.tmpl")
371
371
s2.ExecuteTemplate(os.Stdout, "content", nil)
372
372
fmt.Println()
373
- s3, _ := templates.LookUp ("footer.tmpl")
373
+ s3 := templates.Lookup ("footer.tmpl")
374
374
s3.ExecuteTemplate(os.Stdout, "footer", nil)
375
375
fmt.Println()
376
376
s3.Execute(os.Stdout, nil)
You can’t perform that action at this time.
0 commit comments