-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathembed.go
28 lines (26 loc) · 848 Bytes
/
embed.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* CODE GENERATED AUTOMATICALLY WITH
* github.com/wlbr/templify
* THIS FILE SHOULD NOT BE EDITED BY HAND
*/
package main
// embedTemplate is a generated function returning the template as a string.
// That string should be parsed by the functions of the golang's template package.
func embedTemplate() string {
var tmpl = "/*\n" +
" * CODE GENERATED AUTOMATICALLY WITH\n" +
" * github.com/wlbr/templify\n" +
" * THIS FILE SHOULD NOT BE EDITED BY HAND\n" +
" */\n" +
"\n" +
"package {{.Package}}\n" +
"\n" +
"// {{.Name}}Template is a generated function returning the template as a string.\n" +
"// That string should be parsed by the functions of the golang's template package.\n" +
"func {{.Name}}Template() string {\n" +
"\tvar tmpl = \"{{.Content}}\"\n" +
"\treturn tmpl\n" +
"}\n" +
""
return tmpl
}