Open ghost opened 4 years ago
Help !!! please...
I just opened up an 🕸️ old Go project and found some changes need to me made from the old version to the new.
package github.com/gizak/termui: no Go files in /code/go/src/github.com/gizak/termui
Adding /v3
to the end of the import statements brought in the new code:
"github.com/gizak/termui"
"github.com/gizak/termui/v3"
Unfortunately there seem to have been some API changes in v3:
ui/interface.go:35:2: undefined: termui.Handle
ui/interface.go:37:2: undefined: termui.Loop
ui/keyboard.go:6:11: e.Data undefined (type termui.Event has no field or method Data)
ui/keyboard.go:15:3: undefined: termui.StopLoop
ui/layout.go:5:22: undefined: termui.Par
ui/layout.go:6:9: undefined: termui.List
ui/layout.go:12:6: undefined: termui.NewPar
ui/layout.go:15:15: undefined: termui.Attribute
ui/layout.go:17:7: undefined: termui.NewList
ui/layout.go:20:16: undefined: termui.Attribute
ui/layout.go:20:16: too many errors
Is there possibly a 'quick and easy' way of upgrade versions or should I go through and rewrite it using the v3 docs as reference?
Hi guys,
Hope you are all well !
I tried to find some documentation but could not find it. How to migrate legacy termui integration to v3...
What is replacing ? termui.NewList() termui.NewPar() termui.Body
here is the code:
Cheers, X