Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
localereader
✓ github.com/mattn/go-localereader
Use localereader to read text and convert to UTF-8.
package main
import (
"fmt"
"strings"
"github.com/mattn/go-localereader"
)
func main() {
// Example: read a string with locale encoding
reader := localereader.NewReader(strings.NewReader("some text"))
buf := make([]byte, 1024)
n, _ := reader.Read(buf)
fmt.Println(string(buf[:n]))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.