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

Function IntPtr

esapi/esapi.go:55–55  ·  view source on GitHub ↗

IntPtr returns a pointer to v. It is used as a convenience function for converting an int value into a pointer when passing the value to a function or struct field which expects a pointer.

(v int)

Source from the content-addressed store, hash-verified

53// into a pointer when passing the value to a function or struct field
54// which expects a pointer.
55func IntPtr(v int) *int { return &v }
56
57// Int64Ptr returns a pointer to v.
58//

Callers 3

BenchmarkClientAPIFunction · 0.92
TestBulkIndexerFunction · 0.92
TestAPIHelpersFunction · 0.85

Calls

no outgoing calls

Tested by 3

BenchmarkClientAPIFunction · 0.74
TestBulkIndexerFunction · 0.74
TestAPIHelpersFunction · 0.68