need this for it to work under windows. This is probably actually a bug

and can be fixed in the andlabs import internally with go

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-06 17:42:59 -07:00
parent 673b5b245c
commit 6ddbe8c28d
3 changed files with 6 additions and 0 deletions

View File

@ -6,9 +6,11 @@ import "fmt"
import "github.com/mitchellh/go-homedir" import "github.com/mitchellh/go-homedir"
// import "os" // import "os"
import "strings" import "strings"
import "time"
import "github.com/gookit/config" import "github.com/gookit/config"
import "github.com/andlabs/ui" import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
// dns // dns
// import "github.com/miekg/dns" // import "github.com/miekg/dns"
@ -285,5 +287,7 @@ func setupUI() {
func main() { func main() {
parseConfig() parseConfig()
time.Sleep(2 * 1000 * 1000 * 1000)
ui.Main(setupUI) ui.Main(setupUI)
} }

View File

@ -5,6 +5,7 @@ package main
import "fmt" import "fmt"
import "log" import "log"
import "github.com/andlabs/ui" import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
import "github.com/davecgh/go-spew/spew" import "github.com/davecgh/go-spew/spew"
type vmRowData struct { type vmRowData struct {

View File

@ -1,6 +1,7 @@
package main package main
import "github.com/andlabs/ui" import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
func (mh *modelHandler) NumRows(m *ui.TableModel) int { func (mh *modelHandler) NumRows(m *ui.TableModel) int {
// log.Println("NumRows() with m=", m) // log.Println("NumRows() with m=", m)