github.com/grailbio/base@v0.0.11/file/info.go (about) 1 // Copyright 2018 GRAIL, Inc. All rights reserved. 2 // Use of this source code is governed by the Apache-2.0 3 // license that can be found in the LICENSE file. 4 5 package file 6 7 import ( 8 "time" 9 ) 10 11 // Info represents file metadata. 12 type Info interface { 13 // Size returns the length of the file in bytes for regular files; system-dependent for others 14 Size() int64 15 // ModTime returns modification time for regular files; system-dependent for others 16 ModTime() time.Time 17 18 // TODO: add attributes, in form map[string]interface{}. 19 }