encodedText.go 229 B

1234567891011121314
  1. package main
  2. import (
  3. "fmt"
  4. )
  5. type EncodedText struct {
  6. text string
  7. encodedWords []string
  8. }
  9. func (e EncodedText) String() string {
  10. return fmt.Sprintf("\n---weird---\n%s\n---weird---\n%v", e.text, e.encodedWords)
  11. }