hugolib: Use []byte in shortcode parsing

See #5324
This commit is contained in:
Bjørn Erik Pedersen
2018-10-18 09:47:39 +02:00
parent 27f5a906a2
commit 1b7ecfc2e1
6 changed files with 28 additions and 25 deletions

View File

@@ -21,6 +21,10 @@ type Item struct {
Val []byte
}
func (i Item) ValStr() string {
return string(i.Val)
}
func (i Item) IsText() bool {
return i.typ == tText
}