Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reader ¶ added in v0.5.0
Reader returns transformed text reader
Example ¶
package main import ( "bytes" "fmt" "io" "strings" "github.com/spiegel-im-spiegel/text/width" ) func main() { buf := &bytes.Buffer{} if _, err := io.Copy(buf, width.Reader(strings.NewReader("abヲ₩○¥A"), width.Fold)); err != nil { return } fmt.Println(buf) }
Output: abヲ₩○¥A
Types ¶
Click to show internal directories.
Click to hide internal directories.