How to get detailed information about the file in Go, including the creation date, the last modified date?
files, err := ioutil.ReadDir("C:\\Windows\\System32") if err != nil { log.Fatal("error") } for _, file := range files { if file.IsDir() == false { fmt.Printf("%s --- %d\n", file.Name(), file.Size()) } }