import remote project

This commit is contained in:
2021-12-30 20:35:06 +01:00
parent 956f2b3ca5
commit d7f0e206ca
5 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// Package importpackage implements additional functions to manipulate UTF-8
// encoded strings, beyond what is provided in the standard "strings" package.
package importpackage
// ReverseRunes returns its argument string reversed rune-wise left to right.
func ReverseRunes(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}