MCPcopy Create free account
hub / github.com/buger/jsonparser / GetInt

Method GetInt

path_compiler.go:190–192  ·  view source on GitHub ↗

GetInt resolves the compiled path and returns its integer value. SYS-REQ-114

(data []byte)

Source from the content-addressed store, hash-verified

188// GetInt resolves the compiled path and returns its integer value.
189// SYS-REQ-114
190func (c CompiledPath) GetInt(data []byte) (int64, error) {
191 return GetInt(data, c.parts...)
192}
193
194// Set writes value at the compiled path.
195// Verifies: SYS-REQ-009 (Set)

Callers 1

TestCompiledPathMethodsFunction · 0.80

Calls 1

GetIntFunction · 0.85

Tested by 1

TestCompiledPathMethodsFunction · 0.64