mirror of https://github.com/markbates/pkger.git
28 lines
377 B
Go
28 lines
377 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if err := run(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func run() error {
|
|
info, err := os.Stat("./public/index.html")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
fmt.Println("Name: ", info.Name())
|
|
fmt.Println("Size: ", info.Size())
|
|
fmt.Println("Mode: ", info.Mode())
|
|
fmt.Println("ModTime: ", info.ModTime())
|
|
|
|
return nil
|
|
}
|