diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-05 20:56:38 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-05 20:56:38 +0100 |
commit | 023992abad74760cad50996b3c023ac50c534729 (patch) | |
tree | 4378be5a2d25c631c6ed7e93657c37185b8c6db4 /hugolib/planner.go | |
parent | 27f8d8f9631a94c090dfdadcf3e38d2c5e389a4d (diff) |
Unexport the target handlers
These are of no interest outside the package.
Diffstat (limited to 'hugolib/planner.go')
-rw-r--r-- | hugolib/planner.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/planner.go b/hugolib/planner.go index 8dd82c0f5..41a1676f6 100644 --- a/hugolib/planner.go +++ b/hugolib/planner.go @@ -37,23 +37,23 @@ func (s *Site) ShowPlan(out io.Writer) (err error) { } fmt.Fprintf(out, "\n") fmt.Fprintf(out, " canonical => ") - if s.Targets.Page == nil { + if s.targets.page == nil { fmt.Fprintf(out, "%s\n\n", "!no target specified!") continue } - trns, err := s.PageTarget().Translate(p.TargetPath()) + trns, err := s.pageTarget().Translate(p.TargetPath()) if err != nil { return err } fmt.Fprintf(out, "%s\n", trns) - if s.Targets.Alias == nil { + if s.targets.alias == nil { continue } for _, alias := range p.Aliases { - aliasTrans, err := s.AliasTarget().Translate(alias) + aliasTrans, err := s.aliasTarget().Translate(alias) if err != nil { return err } |