MCPcopy
hub / github.com/dzhou121/gonvim / reflectToInt

Function reflectToInt

editor/utils.go:3–13  ·  view source on GitHub ↗
(iface interface{})

Source from the content-addressed store, hash-verified

1package editor
2
3func reflectToInt(iface interface{}) int {
4 i, ok := iface.(int64)
5 if ok {
6 return int(i)
7 }
8 u, ok := iface.(uint64)
9 if ok {
10 return int(u)
11 }
12 return 0
13}
14
15func isZero(d interface{}) bool {
16 if d == nil {

Callers 15

showItemMethod · 0.70
posMethod · 0.70
handleRedrawMethod · 0.70
handleRPCGuiMethod · 0.70
updateBgMethod · 0.70
cursorGotoMethod · 0.70
highlightSetMethod · 0.70
setScrollRegionMethod · 0.70
updateMethod · 0.70
LessMethod · 0.70
handleUpdatesMethod · 0.70
showMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected