Created
July 26, 2019 15:43
-
-
Save kasvith/5517d832de7ccad179d544c3db468458 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var packageTemplate = template.Must(template.New("").Funcs(map[string]interface{}{"conv": FormatByteSlice}).Parse(`// Code generated by go generate; DO NOT EDIT. | |
// generated using files from resources directory | |
// DO NOT COMMIT this file | |
package box | |
func init(){ | |
{{- range $name, $file := . }} | |
resources.Add("{{ $name }}", []byte{ {{ conv $file }} }) | |
{{- end }} | |
} | |
`)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment