run modernize

This commit is contained in:
Kovid Goyal
2025-11-11 17:09:37 +05:30
parent 1faf786bd2
commit 6f588a0c29
30 changed files with 46 additions and 60 deletions

View File

@@ -18,7 +18,7 @@ var _ = fmt.Print
func ParseStrDict(val, record_sep, field_sep string) (map[string]string, error) {
ans := make(map[string]string)
for _, record := range strings.Split(val, record_sep) {
for record := range strings.SplitSeq(val, record_sep) {
key, val, found := strings.Cut(record, field_sep)
if found {
ans[key] = val