123456789101112131415 |
- package main
- import (
- "fmt"
- "strings"
- )
- type EncodedText struct {
- text string
- encodedWords []string
- }
- func (e EncodedText) String() string {
- return fmt.Sprintf("\n---weird---\n%s\n---weird---\n%v", e.text, strings.Join(e.encodedWords, " "))
- }
|