get rid of utils.Cut since we can now rely on strings.Cut instead

This commit is contained in:
Kovid Goyal
2023-03-04 13:37:55 +05:30
parent defac0c061
commit a2887bb9e0
12 changed files with 24 additions and 35 deletions

View File

@@ -3,13 +3,13 @@
package at
import (
"kitty/tools/utils"
"strings"
)
func parse_key_val_args(args []string) map[escaped_string]escaped_string {
ans := make(map[escaped_string]escaped_string, len(args))
for _, arg := range args {
key, value, found := utils.Cut(arg, "=")
key, value, found := strings.Cut(arg, "=")
if found {
ans[escaped_string(key)] = escaped_string(value)
} else {