2019-11-01 22:53:54 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
if err := run(); err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func run() error {
|
2019-11-01 23:22:08 +03:00
|
|
|
info, err := os.Stat("./public/index.html")
|
2019-11-01 22:53:54 +03:00
|
|
|
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
|
|
|
|
}
|