Removing GetSection

Using GetXXX is not idiomatic to Go.  Also added a bunch of unit testing
around this method.
This commit is contained in:
Noah Campbell
2013-08-14 15:22:57 -07:00
parent ae7112977d
commit 599e6672f7
4 changed files with 78 additions and 19 deletions

View File

@@ -118,7 +118,7 @@ func (page *Page) Type() string {
return page.contentType
}
page.guessSection()
if x := page.GetSection(); x != "" {
if x := page.Section; x != "" {
return x
}