fixup! run gofumpt / format comments / comment blocks
This commit is contained in:
@@ -18,9 +18,10 @@ import (
|
||||
// once i had this written with ~100% text/template but it was very
|
||||
// slow. now this thing is not nice on the eyes or easy to change
|
||||
// but it's pretty fast. which i needed it to for live reloading stuff
|
||||
|
||||
const (
|
||||
byteCols = 24
|
||||
// begin file template
|
||||
// ** begin file template
|
||||
fileHeader = `// file generated with embed tool
|
||||
// do not edit
|
||||
// %s
|
||||
@@ -33,7 +34,7 @@ type EmbeddedAsset struct {
|
||||
var %s = map[string]*EmbeddedAsset{`
|
||||
fileFooter = `
|
||||
}`
|
||||
// begin asset template
|
||||
// ** begin asset template
|
||||
assetHeader = `
|
||||
%q: &EmbeddedAsset{
|
||||
ModTime: time.Unix(%d, 0),
|
||||
@@ -104,13 +105,11 @@ func processAssets(c *config, files []string) error {
|
||||
return errors.Wrap(err, "opening asset")
|
||||
}
|
||||
defer data.Close()
|
||||
processAsset(
|
||||
c,
|
||||
&file{
|
||||
data: data,
|
||||
path: path,
|
||||
modTime: info.ModTime(),
|
||||
},
|
||||
processAsset(c, &file{
|
||||
data: data,
|
||||
path: path,
|
||||
modTime: info.ModTime(),
|
||||
},
|
||||
outWriter,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user