v0.0.358
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m22s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m22s
This commit is contained in:
12
sq/params.go
12
sq/params.go
@@ -1,5 +1,7 @@
|
||||
package sq
|
||||
|
||||
import "gogs.mikescher.com/BlackForestBytes/goext/langext"
|
||||
|
||||
type PP map[string]any
|
||||
|
||||
func Join(pps ...PP) PP {
|
||||
@@ -11,3 +13,13 @@ func Join(pps ...PP) PP {
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
func (pp *PP) Add(v any) string {
|
||||
id := PPID()
|
||||
(*pp)[id] = v
|
||||
return id
|
||||
}
|
||||
|
||||
func PPID() string {
|
||||
return "p_" + langext.RandBase62(8)
|
||||
}
|
||||
|
Reference in New Issue
Block a user