diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-08 22:32:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-08 22:33:18 +0200 |
commit | 55dd533bf759ab1e19fd5ff3d38f7fa5f3fd589a (patch) | |
tree | 76a5ed14231cb1405aee4e496c03df8212799783 /hugolib/page.go | |
parent | b82cd82f1198a371ed94bda7faafe22813f4cb29 (diff) |
hugolib: Unexport some internal methods
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index 42ed4e60f..909ac247e 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -313,7 +313,7 @@ func (ps Pages) String() string { return fmt.Sprintf("Pages(%d)", len(ps)) } -func (ps Pages) FindPagePosByFilePath(inPath string) int { +func (ps Pages) findPagePosByFilePath(inPath string) int { for i, x := range ps { if x.Source.Path() == inPath { return i @@ -322,7 +322,7 @@ func (ps Pages) FindPagePosByFilePath(inPath string) int { return -1 } -func (ps Pages) FindPagePosByFilePathPrefix(prefix string) int { +func (ps Pages) findFirstPagePosByFilePathPrefix(prefix string) int { if prefix == "" { return -1 } @@ -334,9 +334,9 @@ func (ps Pages) FindPagePosByFilePathPrefix(prefix string) int { return -1 } -// FindPagePos Given a page, it will find the position in Pages +// findPagePos Given a page, it will find the position in Pages // will return -1 if not found -func (ps Pages) FindPagePos(page *Page) int { +func (ps Pages) findPagePos(page *Page) int { for i, x := range ps { if x.Source.Path() == page.Source.Path() { return i |