summaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2015-03-11 11:34:57 -0600
committerbep <[email protected]>2015-03-11 21:55:00 +0100
commit67df33f50069445d53d373790e8c636e47013a72 (patch)
treec4e9d646f32aa2a7a40e6c5597b904647bc85e3f /source
parent00f07c5374d859057c6e7c4731000b5978364819 (diff)
downloadhugo-67df33f50069445d53d373790e8c636e47013a72.tar.gz
hugo-67df33f50069445d53d373790e8c636e47013a72.zip
Correct initialisms as suggested by golint
First step to use initialisms that golint suggests, for example: Line 116: func GetHtmlRenderer should be GetHTMLRenderer as see on http://goreportcard.com/report/spf13/hugo Thanks to @bep for the idea! Note that command-line flags (cobra and pflag) as well as struct fields like .BaseUrl and .Url that are used in Go HTML templates need more work to maintain backward-compatibility, and thus are NOT yet dealt with in this commit. First step in fixing #959.
Diffstat (limited to 'source')
-rw-r--r--source/file.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/file.go b/source/file.go
index 393c231b9..982a73312 100644
--- a/source/file.go
+++ b/source/file.go
@@ -27,14 +27,14 @@ type File struct {
section string // The first directory
dir string // The full directory Path (minus file name)
ext string // Just the ext (eg txt)
- uniqueId string // MD5 of the filename
+ uniqueID string // MD5 of the filename
}
-func (f *File) UniqueId() string {
- if f.uniqueId == "" {
- f.uniqueId = helpers.Md5String(f.LogicalName())
+func (f *File) UniqueID() string {
+ if f.uniqueID == "" {
+ f.uniqueID = helpers.Md5String(f.LogicalName())
}
- return f.uniqueId
+ return f.uniqueID
}
func (f *File) String() string {