MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / loadAndDisplaySync

Function loadAndDisplaySync

ftv.go:140–155  ·  view source on GitHub ↗

loadAndDisplaySync handles the complete sync loading workflow

(loader func(*Buffer) error, source string)

Source from the content-addressed store, hash-verified

138
139// loadAndDisplaySync handles the complete sync loading workflow
140func loadAndDisplaySync(loader func(*Buffer) error, source string) error {
141 if err := loader(b); err != nil {
142 return err
143 }
144
145 setupFreezeMode(b)
146 if err := validateDataNotEmpty(b, source); err != nil {
147 return err
148 }
149
150 if err := drawUI(b); err != nil {
151 return err
152 }
153
154 return runApp()
155}
156
157func main() {
158 initView()

Callers 1

mainFunction · 0.85

Calls 4

setupFreezeModeFunction · 0.85
validateDataNotEmptyFunction · 0.85
drawUIFunction · 0.85
runAppFunction · 0.85

Tested by

no test coverage detected