MCPcopy
hub / github.com/elastic/go-elasticsearch / WithPretty

Method WithPretty

esapi/api.get.go:328–332  ·  view source on GitHub ↗

WithPretty makes the response body pretty-printed.

()

Source from the content-addressed store, hash-verified

326
327// WithPretty makes the response body pretty-printed.
328func (f Get) WithPretty() func(*GetRequest) {
329 return func(r *GetRequest) {
330 r.Pretty = true
331 }
332}
333
334// WithHuman makes statistical values human-readable.
335func (f Get) WithHuman() func(*GetRequest) {

Callers 8

BenchmarkClientAPIFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
mainFunction · 0.45
BenchmarkAPIFunction · 0.45
TestAPIFunction · 0.45

Calls

no outgoing calls

Tested by 4

BenchmarkClientAPIFunction · 0.36
BenchmarkAPIFunction · 0.36
TestAPIFunction · 0.36