Make isText private

This commit is contained in:
Jason Streifling 2024-10-16 18:31:24 +02:00
parent f8c36a7045
commit f11dee630d
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ type PlainText struct {
Text string `xml:"text"` Text string `xml:"text"`
} }
func (p *PlainText) IsText() bool { return true } func (p *PlainText) isText() bool { return true }
func (p *PlainText) Check() error { func (p *PlainText) Check() error {
if p.Type != "" && p.Type != "text" && p.Type != "html" { if p.Type != "" && p.Type != "text" && p.Type != "html" {

View File

@ -6,8 +6,8 @@ import (
) )
type Text interface { type Text interface {
isText() bool
Check() error Check() error
IsText() bool
} }
func NewText(textType, content string) (Text, error) { func NewText(textType, content string) (Text, error) {

View File

@ -17,7 +17,7 @@ type XHTMLText struct {
XHTMLDiv XHTMLDiv XHTMLDiv XHTMLDiv
} }
func (x *XHTMLText) IsText() bool { return true } func (x *XHTMLText) isText() bool { return true }
func (x *XHTMLText) Check() error { func (x *XHTMLText) Check() error {
if x.Type != "xhtml" { if x.Type != "xhtml" {