• Gustavo Niemeyer's avatar
    os: turn FileStat.Sys into a method on FileInfo · 20f4385a
    Gustavo Niemeyer authored
    This reduces the overhead necessary to work with OS-specific
    file details, hides the implementation of FileStat, and
    preserves the implementation-specific nature of Sys.
    
    Expressions such as:
    
      stat.(*os.FileInfo).Sys.(*syscall.Stat_t).Uid
      fi1.(*os.FileStat).SameFile(fi2.(*os.FileStat))
    
    Are now spelled as::
    
      stat.Sys().(*syscall.Stat_t).Uid
      os.SameFile(fi1, fi2)
    
    R=cw, bradfitz, rsc
    CC=golang-dev
    https://golang.org/cl/5448079
    20f4385a
zip_test.go 2.05 KB