diff --git a/file/file.go b/file/file.go index db6c2d5..50e7478 100644 --- a/file/file.go +++ b/file/file.go @@ -111,3 +111,13 @@ func (file *File) Location (width int) (location Location) { width: width, } } + +// Path returns the path that teh file is located at. +func (file *File) Path () (path string) { + return file.path +} + +// GetLine returns the line at the specified index. +func (file *File) GetLine (index int) (line string) { + return file.lines[index] +}