Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codechenx/FastTableViewer
/ I2B
Function
I2B
utils.go:37–39 ·
view source on GitHub ↗
I2B covert int to bool, if i >0:true, else false
(i int)
Source
from the content-addressed store, hash-verified
35
36
// I2B covert int to bool, if i >0:true, else false
37
func
I2B(i int) bool {
38
return
i > 0
39
}
40
41
// F2S covert float64 to bool
42
func
F2S(i float64) string {
Callers
4
TestI2B
Function · 0.85
sortByStr
Method · 0.85
sortByNum
Method · 0.85
sortByDate
Method · 0.85
Calls
no outgoing calls
Tested by
1
TestI2B
Function · 0.68