MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / type2name

Function type2name

init.go:14–25  ·  view source on GitHub ↗

get column data type name. s: string, n: number, d: date

(i int)

Source from the content-addressed store, hash-verified

12
13// get column data type name. s: string, n: number, d: date
14func type2name(i int) string {
15 switch i {
16 case colTypeStr:
17 return "Str"
18 case colTypeFloat:
19 return "Num"
20 case colTypeDate:
21 return "Date"
22 default:
23 return "Str"
24 }
25}
26
27var app *tview.Application
28var UI *tview.Pages

Callers 5

TestAutoDetectColumnTypeFunction · 0.85
TestDetectAllColumnTypesFunction · 0.85
TestType2NameFunction · 0.85
buildCursorPosStrFunction · 0.85
showStatsDialogFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestAutoDetectColumnTypeFunction · 0.68
TestDetectAllColumnTypesFunction · 0.68
TestType2NameFunction · 0.68