diff --git a/leak/finder.go b/leak/finder.go index b5090d3..2fa01b6 100644 --- a/leak/finder.go +++ b/leak/finder.go @@ -7,9 +7,9 @@ import ( "github.com/jimeh/rbheap/obj" ) -func NewFinder(file1, file2, file3 string) *Finder { +func NewFinder(filePath1, filePath2, filePath3 string) *Finder { return &Finder{ - FilePaths: [3]string{file1, file2, file3}, + FilePaths: [3]string{filePath1, filePath2, filePath3}, } } diff --git a/obj/dump.go b/obj/dump.go index 3005058..1810b24 100644 --- a/obj/dump.go +++ b/obj/dump.go @@ -8,20 +8,20 @@ import ( "sort" ) -func NewDump(file string) *Dump { - return &Dump{File: file} +func NewDump(filePath string) *Dump { + return &Dump{FilePath: filePath} } // Dump contains all relevant data for a single heap dump. type Dump struct { - File string - Index []*string - Entries map[string]*Entry + FilePath string + Index []*string + Entries map[string]*Entry } // Process processes the heap dump func (s *Dump) Process() error { - file, err := os.Open(s.File) + file, err := os.Open(s.FilePath) defer file.Close() if err != nil { @@ -63,7 +63,7 @@ func (s *Dump) PrintEntryAddress(indexes []*string) { } func (s *Dump) PrintEntryJSON(indexes []*string) error { - file, err := os.Open(s.File) + file, err := os.Open(s.FilePath) defer file.Close() if err != nil {