- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ToQuery (0.16 sec)
-
internal/grid/trace.go
v := ctx.Value(TraceParamsKey{}) // Should match SingleHandler.Call checks. switch typed := v.(type) { case *MSS: trace.Path += typed.ToQuery() case map[string]string: m := MSS(typed) trace.Path += m.ToQuery() case *URLValues: trace.Path += typed.Values().Encode() case *NoPayload, *Bytes: trace.Path = fmt.Sprintf("%s?payload=%T", trace.Path, typed) case string:
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Feb 02 22:54:54 GMT 2024 - 4K bytes - Viewed (0) -
internal/grid/types.go
// Recycle the underlying map. func (m *MSS) Recycle() { if m != nil && *m != nil { mssPool.Put(map[string]string(*m)) *m = nil } } // ToQuery constructs a URL query string from the MSS, including "?" if there are any keys. func (m MSS) ToQuery() string { if len(m) == 0 { return "" } var buf strings.Builder buf.WriteByte('?') keys := make([]string, 0, len(m)) for k := range m {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Apr 01 23:42:09 GMT 2024 - 15.4K bytes - Viewed (0)