From 8b8fb417ae065954a056ea018bd092748cc9127c Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 17 Mar 2015 22:16:54 -0700 Subject: More initialism corrections (golint) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to @bep's new, brilliant helpers.Deprecated() function, the following functions or variables are transitioned to their new names, preserving backward compatibility for v0.14 and warning the user of upcoming obsolescence in v0.15: * .Url → .URL (for node, menu and paginator) * .Site.BaseUrl → .Site.BaseURL * .Site.Indexes → .Site.Taxonomies * .Site.Recent → .Site.Pages * getJson → getJSON * getCsv → getCSV * safeHtml → safeHTML * safeCss → safeCSS * safeUrl → safeURL Also fix related initialisms in strings and comments. Continued effort in fixing #959. --- helpers/url_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helpers/url_test.go') diff --git a/helpers/url_test.go b/helpers/url_test.go index 35ade94e5..b11be3521 100644 --- a/helpers/url_test.go +++ b/helpers/url_test.go @@ -6,7 +6,7 @@ import ( "testing" ) -func TestUrlize(t *testing.T) { +func TestURLize(t *testing.T) { tests := []struct { input string expected string @@ -26,7 +26,7 @@ func TestUrlize(t *testing.T) { } } -func TestSanitizeUrl(t *testing.T) { +func TestSanitizeURL(t *testing.T) { tests := []struct { input string expected string @@ -76,7 +76,7 @@ func TestMakePermalink(t *testing.T) { } } -func TestUrlPrep(t *testing.T) { +func TestURLPrep(t *testing.T) { type test struct { ugly bool input string -- cgit v1.2.3