updated dependencies and go
This commit is contained in:
+4
-6
@@ -1,5 +1,7 @@
|
||||
package sq
|
||||
|
||||
import "maps"
|
||||
|
||||
import "git.blackforestbytes.com/BlackForestBytes/goext/langext"
|
||||
|
||||
type PP map[string]any
|
||||
@@ -7,9 +9,7 @@ type PP map[string]any
|
||||
func Join(pps ...PP) PP {
|
||||
r := PP{}
|
||||
for _, add := range pps {
|
||||
for k, v := range add {
|
||||
r[k] = v
|
||||
}
|
||||
maps.Copy(r, add)
|
||||
}
|
||||
return r
|
||||
}
|
||||
@@ -21,9 +21,7 @@ func (pp *PP) Add(v any) string {
|
||||
}
|
||||
|
||||
func (pp *PP) AddAll(other PP) {
|
||||
for id, v := range other {
|
||||
(*pp)[id] = v
|
||||
}
|
||||
maps.Copy((*pp), other)
|
||||
}
|
||||
|
||||
func PPID() string {
|
||||
|
||||
Reference in New Issue
Block a user