MCPcopy Create free account
hub / github.com/cortexproject/cortex / String

Method String

pkg/querier/tripperware/query.pb.go:3401–3415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3399 return s
3400}
3401func (this *Matrix) String() string {
3402 if this == nil {
3403 return "nil"
3404 }
3405 repeatedStringForSampleStreams := "[]SampleStream{"
3406 for _, f := range this.SampleStreams {
3407 repeatedStringForSampleStreams += strings.Replace(strings.Replace(f.String(), "SampleStream", "SampleStream", 1), `&`, ``, 1) + ","
3408 }
3409 repeatedStringForSampleStreams += "}"
3410 s := strings.Join([]string{`&Matrix{`,
3411 `SampleStreams:` + repeatedStringForSampleStreams + `,`,
3412 `}`,
3413 }, "")
3414 return s
3415}
3416func valueToStringQuery(v interface{}) string {
3417 rv := reflect.ValueOf(v)
3418 if rv.IsNil() {

Callers 1

Calls 2

JoinMethod · 0.80
StringMethod · 0.65

Tested by 1