chore: import upstream snapshot with attribution
Deploy to GitHub Pages / deploy (push) Failing after 0s
CI / go (push) Has been cancelled
CI / build (darwin, macos-14) (push) Has been cancelled
CI / build (windows, windows-2025) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 12:31:13 +08:00
commit ead81af521
414 changed files with 73946 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package model
import "unicode/utf8"
// removeLastRune trims the final UTF-8 rune from s, used by all text input handlers.
func removeLastRune(s string) string {
if len(s) > 0 {
_, size := utf8.DecodeLastRuneInString(s)
return s[:len(s)-size]
}
return s
}