MCPcopy
hub / github.com/qustavo/httplab / Get

Method Get

ui/ui.go:72–77  ·  view source on GitHub ↗

Get gets the cursor position.

(view string)

Source from the content-addressed store, hash-verified

70
71// Get gets the cursor position.
72func (c Cursors) Get(view string) (int, int) {
73 if v, ok := c[view]; ok {
74 return v.x, v.y
75 }
76 return 0, 0
77}
78
79// Set sets the cursor position.
80func (c Cursors) Set(view string, x, y int) {

Callers 9

RestoreMethod · 0.95
TestResponseHeadersFunction · 0.45
TestResponseWriteFunction · 0.45
TestLoadFromJSONFunction · 0.45
writeBodyFunction · 0.45
DumpRequestFunction · 0.45
setResponseViewMethod · 0.45
restoreResponseMethod · 0.45
toggleResponsesLoaderMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestResponseHeadersFunction · 0.36
TestResponseWriteFunction · 0.36
TestLoadFromJSONFunction · 0.36