diff options
author | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-03-24 23:16:18 +0100 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-03-24 23:16:18 +0100 |
commit | 5d3705df16014c1404282234e30ef9d1c9be9c15 (patch) | |
tree | 839346df1dd7aaaa5363601a172661018220e17e /helpers/url.go | |
parent | 7fa2cec906a2b4fa9bc7afd72111b27e316c65fb (diff) |
helpers: Apply GoLint rules
Diffstat (limited to 'helpers/url.go')
-rw-r--r-- | helpers/url.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/url.go b/helpers/url.go index 749b2eeac..9d3db8004 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -97,7 +97,7 @@ func SanitizeURLKeepTrailingSlash(in string) string { return sanitizeURLWithFlags(in, purell.FlagsSafe|purell.FlagRemoveDotSegments|purell.FlagRemoveDuplicateSlashes|purell.FlagRemoveUnnecessaryHostDots|purell.FlagRemoveEmptyPortSeparator) } -// Similar to MakePath, but with Unicode handling +// URLize is similar to MakePath, but with Unicode handling // Example: // uri: Vim (text editor) // urlize: vim-text-editor @@ -105,16 +105,16 @@ func URLize(uri string) string { sanitized := MakePathSanitized(uri) // escape unicode letters - parsedUri, err := url.Parse(sanitized) + parsedURI, err := url.Parse(sanitized) if err != nil { // if net/url can not parse URL it's meaning Sanitize works incorrect panic(err) } - x := parsedUri.String() + x := parsedURI.String() return x } -// Combines base URL with content path to create full URL paths. +// MakePermalink combines base URL with content path to create full URL paths. // Example // base: http://spf13.com/ // path: post/how-i-blog |