go fmt so code

This commit is contained in:
spf13 2013-09-29 02:07:41 -04:00
parent ff2b98c9dd
commit 92cff05582

View file

@ -25,15 +25,15 @@ import (
"github.com/spf13/nitro" "github.com/spf13/nitro"
"html/template" "html/template"
"io" "io"
"net/url"
"os" "os"
"strings" "strings"
"time" "time"
"net/url"
) )
var DefaultTimer = nitro.Initalize() var DefaultTimer = nitro.Initalize()
func MakePermalink(base *url.URL, path *url.URL) (*url.URL) { func MakePermalink(base *url.URL, path *url.URL) *url.URL {
return base.ResolveReference(path) return base.ResolveReference(path)
} }
@ -542,7 +542,7 @@ func (s *Site) Stats() {
} }
} }
func permalink(s *Site, plink string) (template.HTML) { func permalink(s *Site, plink string) template.HTML {
base, err := url.Parse(string(s.Config.BaseUrl)) base, err := url.Parse(string(s.Config.BaseUrl))
if err != nil { if err != nil {
panic(err) panic(err)