// A FileInfo describes a file and is returned by Stat and Lstat.type FileInfo interface{
Name()string// base name of the fileSize()int64// length in bytes for regular files; system-dependent for othersMode(
1. 函数原型func Stat(name string) (FileInfo, error)2. FileInfo数据结构// A FileInfo describes a file and is returned by Stat and Lstat.type FileInfo interface { Name() string // base name of the file Size() int64 // length in bytes for regular f