move assets to server package

This commit is contained in:
sentriz
2020-03-22 01:11:48 +00:00
parent 4e3a0db739
commit 52d2dbcce9
20 changed files with 21 additions and 20 deletions

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package assets
import "strings"
// PrefixDo runs a given callback for every path in our assets with
// the given prefix
func PrefixDo(pre string, cb func(path string, asset *EmbeddedAsset)) {
for path, asset := range Bytes {
if strings.HasPrefix(path, pre) {
cb(path, asset)
}
}
}