A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/34861899e7916a2ffeddf8bd6d4ae73d9bff85ca below:

Use maps.Copy when possible · orgrim/pg_back@3486189 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-4

lines changed Original file line number Diff line number Diff line change

@@ -27,6 +27,7 @@ package main

27 27 28 28

import (

29 29

"fmt"

30 +

"maps"

30 31

"net/url"

31 32

"sort"

32 33

"strings"

@@ -85,10 +86,7 @@ func (c *ConnInfo) Copy() *ConnInfo {

85 86

Kind: c.Kind,

86 87

Infos: make(map[string]string, len(c.Infos)),

87 88

}

88 - 89 -

for k, v := range c.Infos {

90 -

newC.Infos[k] = v

91 -

}

89 +

maps.Copy(newC.Infos, c.Infos)

92 90 93 91

return &newC

94 92

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4