basic_wrap.go 429 B

123456789101112131415161718192021
  1. package timefmt
  2. import (
  3. "time"
  4. )
  5. type BasicTimeElementWrap struct {
  6. basic TimeElement
  7. }
  8. func (this *BasicTimeElementWrap) ExpectedSize() int {
  9. return this.basic.ExpectedSize()
  10. }
  11. func (this *BasicTimeElementWrap) PrintElementEx(t time.Time, data map[string]string) string {
  12. return this.basic.PrintElement(t)
  13. }
  14. func NewBasicTimeElementWrap(b TimeElement) *BasicTimeElementWrap {
  15. return &BasicTimeElementWrap{basic: b}
  16. }