diff options
Diffstat (limited to 'go-src/utils.go')
| -rw-r--r-- | go-src/utils.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/go-src/utils.go b/go-src/utils.go deleted file mode 100644 index 5d60ee9..0000000 --- a/go-src/utils.go +++ /dev/null @@ -1,18 +0,0 @@ -package main - -// Repeats a rune given amount of times and returns the result as a string -func repeatRune(r rune, times int) (result string) { - for i := 0; i < times; i++ { - result += string(r) - } - return -} - -// Replaces a character inside a string with a given rune at index -// -// Thanks https://stackoverflow.com/a/24894202/12036073 -func replaceAtIndex(in string, r rune, i int) string { - out := []rune(in) - out[i] = r - return string(out) -} |
