diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/file.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/file.go b/source/file.go index ce1469d5d..909d457db 100644 --- a/source/file.go +++ b/source/file.go @@ -39,6 +39,14 @@ func (f *File) UniqueId() string { return f.uniqueId } +func (f *File) String() string { + return helpers.ReaderToString(f.Contents) +} + +func (f *File) Bytes() []byte { + return helpers.ReaderToBytes(f.Contents) +} + // Filename without extension func (f *File) BaseFileName() string { return helpers.Filename(f.LogicalName()) |