From 67df33f50069445d53d373790e8c636e47013a72 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 11 Mar 2015 11:34:57 -0600 Subject: 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. --- source/file.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source') 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 { -- cgit v1.2.3