def Query.go
import bend-kube-runtime@0.2.0.0/src/core.bend as Coreimport Base
123# Drops pairs with an empty value, then joins "?k=v&k=v".
124def Query.go(qs: List<&2, Q>) -> List<&2, String>:
125 match qs:
126 case Nil{}:
127 Nil{}
128 case Con{Q{k, +v}, t}:
129 Query.go.put(k, v, Query.go(t), String.is_empty(v))