-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
embed.go
30 lines (28 loc) · 856 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
29
30
/*
* 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/mule\n" +
" * THIS FILE SHOULD NOT BE EDITED BY HAND\n" +
" */\n" +
"\n" +
"package {{.Package}}\n" +
"\n" +
"import \"encoding/base64\"\n" +
"\n" +
"// {{.Name}}Resource is a generated function returning the Resource as a []byte.\n" +
"func {{.Name}}Resource() ([]byte, error) {\n" +
"\tvar resource = \"{{.Content}}\"\n" +
"\n" +
"\treturn base64.StdEncoding.DecodeString(resource)\n" +
"}\n" +
""
return tmpl
}