goext/sq/params.go
Mike Schwörer 42bd4cf58d
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m22s
v0.0.358
2024-01-05 16:53:14 +01:00

26 lines
355 B
Go

package sq
import "gogs.mikescher.com/BlackForestBytes/goext/langext"
type PP map[string]any
func Join(pps ...PP) PP {
r := PP{}
for _, add := range pps {
for k, v := range add {
r[k] = v
}
}
return r
}
func (pp *PP) Add(v any) string {
id := PPID()
(*pp)[id] = v
return id
}
func PPID() string {
return "p_" + langext.RandBase62(8)
}