~chrisppy/go-barefeed

e76763008dc2b1750154fb00285056605c882e40 — Chris Palmer 3 years ago 63fc114 v0.3.1
fix textType
1 files changed, 5 insertions(+), 5 deletions(-)

M text.go
M text.go => text.go +5 -5
@@ 22,20 22,20 @@ type Text struct {
func (t TextType) String() string {
	switch t {
	case HTML:
		return "HTML"
		return "html"
	case XHTML:
		return "XHTML"
		return "xhtml"
	default:
		return "TEXT"
		return "text"
	}
}

// ToTextType converts a string to the enumerated value.  TEXT is default.
func ToTextType(t string) TextType {
	switch t {
	case "HTML":
	case "html":
		return HTML
	case "XHTML":
	case "xhtml":
		return XHTML
	default:
		return TEXT