From e35f8ab59d6a12989a3adc4adbb23c1a86864ab0 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Mon, 18 Jul 2022 16:30:32 -0700 Subject: [PATCH] "utf8s" -> "utf8" --- README.md | 6 +++--- runeerror.go | 6 +----- runewriter_test.go | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a799f75..2cee964 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# go-utf8s +# go-utf8 Package **utf8s** provides tools for working with Unicode encoded as UTF-8, for the Go programming language. ## Documention -Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-utf8s +Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-utf8 -[![GoDoc](https://godoc.org/github.com/reiver/go-utf8s?status.svg)](https://godoc.org/github.com/reiver/go-utf8s) +[![GoDoc](https://godoc.org/github.com/reiver/go-utf8?status.svg)](https://godoc.org/github.com/reiver/go-utf8) ## Example diff --git a/runeerror.go b/runeerror.go index fe1702d..3f4ff54 100644 --- a/runeerror.go +++ b/runeerror.go @@ -1,9 +1,5 @@ package utf8s -import ( - "unicode/utf8" -) - const ( - RuneError = utf8.RuneError + RuneError = '\uFFFD' // Unicode Replacement Character (U+FFFD). ) diff --git a/runewriter_test.go b/runewriter_test.go index 90e2251..ba3eb5f 100644 --- a/runewriter_test.go +++ b/runewriter_test.go @@ -1,7 +1,7 @@ package utf8s_test import ( - "github.com/reiver/go-utf8s" + "github.com/reiver/go-utf8" "strings"