mirror of https://github.com/markbates/pkger.git
fix stat example
This commit is contained in:
parent
9473092e41
commit
3cbd07f98b
|
@ -14,7 +14,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func run() error {
|
func run() error {
|
||||||
info, err := pkger.Stat("/go.mod")
|
info, err := pkger.Stat("/public/index.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func run() error {
|
func run() error {
|
||||||
info, err := os.Stat("./go.mod")
|
info, err := os.Stat("./public/index.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue