github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/src/os/types_plan9.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package os
     6  
     7  import "time"
     8  
     9  // A fileStat is the implementation of FileInfo returned by Stat and Lstat.
    10  type fileStat struct {
    11  	name    string
    12  	size    int64
    13  	mode    FileMode
    14  	modTime time.Time
    15  	sys     interface{}
    16  }
    17  
    18  func (fs *fileStat) Size() int64        { return fs.size }
    19  func (fs *fileStat) Mode() FileMode     { return fs.mode }
    20  func (fs *fileStat) ModTime() time.Time { return fs.modTime }
    21  func (fs *fileStat) Sys() interface{}   { return fs.sys }