Skip to content

Enter one-line summary #6351

@gopherbot

Description

@gopherbot

by gmale120:

tpl1, err = template.New("aaa").ParseFiles("c.txt")

if err != nil {
   fmt.Println(err)
}
err = tpl1.Execute(os.Stdout, nil)
if err != nil {
   fmt.Println(err)
}

html/template:aaa: "aaa" is an incomplete or empty template

You are provide the function 
func (*Template) ParseFiles

Why i can't use this function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions