hugolib: Some more Golint fixes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 16:17:54 +0000 (17:17 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 16:17:54 +0000 (17:17 +0100)
hugolib/robotstxt_test.go
hugolib/scratch.go

index dfbaefea19d1a7675303d2d531ba5b73243e199b..31f89b84786a4b7934920ece131a45e46f18778f 100644 (file)
@@ -11,7 +11,7 @@ import (
        "github.com/spf13/viper"
 )
 
-const ROBOTSTXT_TEMPLATE = `User-agent: Googlebot
+const robotTxtTemplate = `User-agent: Googlebot
   {{ range .Data.Pages }}
        Disallow: {{.RelPermalink}}
        {{ end }}
@@ -31,7 +31,7 @@ func TestRobotsTXTOutput(t *testing.T) {
 
        s.initializeSiteInfo()
 
-       s.prepTemplates("robots.txt", ROBOTSTXT_TEMPLATE)
+       s.prepTemplates("robots.txt", robotTxtTemplate)
 
        if err := s.CreatePages(); err != nil {
                t.Fatalf("Unable to create pages: %s", err)
index ec0b184201eaf3da7c2fd42391f232cfdb38a07c..1bfd790bf4ec1e019807cab1731070dcde85ac6a 100644 (file)
@@ -26,7 +26,7 @@ type Scratch struct {
        mu     sync.RWMutex
 }
 
-// For single values, Add will add (using the + operator) the addend to the existing addend (if found).
+// Add will, for single values, add (using the + operator) the addend to the existing addend (if found).
 // Supports numeric values and strings.
 //
 // If the first add for a key is an array or slice, then the next value(s) will be appended.