Unexport internal path helper
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 14 Oct 2015 19:34:34 +0000 (21:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 14 Oct 2015 19:34:34 +0000 (21:34 +0200)
helpers/path.go
helpers/url.go

index fc326247344fcdd7f0df437000428f3e90bc19d7..a6717cb3767b8fcff2b7cecbb2fa4fbdffe4c4dd 100644 (file)
@@ -430,10 +430,10 @@ func PathPrep(ugly bool, in string) string {
 //     /section/name/           becomes /section/name/index.html
 //     /section/name/index.html becomes /section/name/index.html
 func PrettifyPath(in string) string {
-       return PrettiyPath(in, fpb)
+       return prettiyPath(in, fpb)
 }
 
-func PrettiyPath(in string, b filepathPathBridge) string {
+func prettiyPath(in string, b filepathPathBridge) string {
        if filepath.Ext(in) == "" {
                // /section/name/  -> /section/name/index.html
                if len(in) < 2 {
index c3365d0b83949a6ced01feb6ec7abf1b7503c836..c42bc645043c6768d4e709995901c3bae6605b44 100644 (file)
@@ -244,7 +244,7 @@ func PrettifyURL(in string) string {
 //     /section/name/           becomes /section/name/index.html
 //     /section/name/index.html becomes /section/name/index.html
 func PrettifyURLPath(in string) string {
-       return PrettiyPath(in, pb)
+       return prettiyPath(in, pb)
 }
 
 // Uglify does the opposite of PrettifyURLPath().