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