NewFile returns a File based on the given blob object
(name string, m filemode.FileMode, b *Blob)
| 24 | |
| 25 | // NewFile returns a File based on the given blob object |
| 26 | func NewFile(name string, m filemode.FileMode, b *Blob) *File { |
| 27 | return &File{Name: name, Mode: m, Blob: *b} |
| 28 | } |
| 29 | |
| 30 | // Contents returns the contents of a file as a string. |
| 31 | func (f *File) Contents() (content string, err error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…