packagedefineimport("os""time")// FileInfo describes the attributes of a file or directory.typeFileInfostruct{Namestring`json:"name"`Sizeint64`json:"size"`Modeos.FileMode`json:"mode"`ModTimetime.Time`json:"mtime"`IsDirbool`json:"isDir"`LinkTargetstring`json:"linkTarget"`}