Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devld/go-drive
/ Integer
Method
Integer
script/utils.go:70–76 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
68
}
69
70
func
(v *Value) Integer() int64 {
71
i, e := v.v.ToInteger()
72
if
e != nil {
73
v.vm.ThrowTypeError(e.Error())
74
}
75
return
i
76
}
77
78
func
(v *Value) Float() float64 {
79
f, e := v.v.ToFloat()
Callers
7
vm_newContextWithTimeout
Function · 0.80
vm_sleep
Function · 0.80
vm_newHash
Function · 0.80
vm_hmac
Function · 0.80
parseValue
Function · 0.80
initVarsForVm
Function · 0.80
valueToScriptEntryStruct
Function · 0.80
Calls
2
ThrowTypeError
Method · 0.80
Error
Method · 0.65
Tested by
no test coverage detected