pkger/internal/examples/walk/main.go

21 lines
299 B
Go
Raw Normal View History

2019-07-31 00:21:26 +03:00
package main
import (
"fmt"
"log"
"os"
"github.com/markbates/pkger"
2019-08-01 19:03:12 +03:00
"github.com/markbates/pkger/paths"
2019-07-31 00:21:26 +03:00
)
func main() {
2019-08-01 19:03:12 +03:00
err := pkger.Walk("github.com/gobuffalo/envy", func(path paths.Path, info os.FileInfo) error {
2019-07-31 00:21:26 +03:00
fmt.Println(path)
return nil
})
if err != nil {
log.Fatal(err)
}
}