haunt/hack/unpack/main.go
abs3nt 0e454d971d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: add site unpacking / packing to makefile, ignore assets directory
2023-03-06 10:39:51 -08:00

23 lines
367 B
Go

package main
import (
"fmt"
"github.com/abs3ntdev/haunt/src/haunt"
)
func main() {
names := haunt.AssetNames()
fmt.Println("Assets in bindata:")
fmt.Println(names)
wd := "assets"
for i, v := range names {
fmt.Printf("Restoring asset [%v] [%s]\n", i, v)
err := haunt.RestoreAsset(wd, v)
if err != nil {
fmt.Println("Failed to restore", v)
}
}
}