URI: 
       helpers: Golint fixes - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit d4830fc4fd765d38fd0d7e3d8297eebbe6fca011
   DIR parent 72156e403c3e83b0091c764111ce6a75bd40c08e
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Sat,  5 Nov 2016 17:05:33 +0100
       
       helpers: Golint fixes
       
       Diffstat:
         M helpers/pathspec.go                 |       2 ++
         M helpers/url.go                      |       3 +++
       
       2 files changed, 5 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/helpers/pathspec.go b/helpers/pathspec.go
       @@ -35,6 +35,7 @@ type PathSpec struct {
                multilingual                   bool
        }
        
       +// NewPathSpecFromConfig creats a new PathSpec from the given ConfigProvider.
        func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
                return &PathSpec{
                        disablePathToLower:             config.GetBool("disablePathToLower"),
       @@ -49,6 +50,7 @@ func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
                }
        }
        
       +// PaginatePath returns the configured root path used for paginator pages.
        func (p *PathSpec) PaginatePath() string {
                return p.paginatePath
        }
   DIR diff --git a/helpers/url.go b/helpers/url.go
       @@ -288,10 +288,13 @@ func AddContextRoot(baseURL, relativePath string) string {
                return newPath
        }
        
       +// URLizeAndPrep applies misc sanitation to the given URL to get it in line
       +// with the Hugo standard.
        func (p *PathSpec) URLizeAndPrep(in string) string {
                return URLPrep(p.uglyURLs, p.URLize(in))
        }
        
       +// URLPrep applies misc sanitation to the given URL.
        func URLPrep(ugly bool, in string) string {
                if ugly {
                        x := Uglify(SanitizeURL(in))