MCPcopy 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
37func I2B(i int) bool {
38 return i > 0
39}
40
41// F2S covert float64 to bool
42func F2S(i float64) string {

Callers 4

TestI2BFunction · 0.85
sortByStrMethod · 0.85
sortByNumMethod · 0.85
sortByDateMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestI2BFunction · 0.68