puretext.go 249 B

123456789101112131415
  1. package tfelem
  2. import "time"
  3. type PureTextElement struct {
  4. PureText string
  5. }
  6. func (this *PureTextElement) ExpectedSize() int {
  7. return len(this.PureText)
  8. }
  9. func (this *PureTextElement) PrintElement(t time.Time) string {
  10. return this.PureText
  11. }