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:
parent
673b5b245c
commit
6ddbe8c28d
4
main.go
4
main.go
|
@ -6,9 +6,11 @@ import "fmt"
|
|||
import "github.com/mitchellh/go-homedir"
|
||||
// import "os"
|
||||
import "strings"
|
||||
import "time"
|
||||
|
||||
import "github.com/gookit/config"
|
||||
import "github.com/andlabs/ui"
|
||||
import _ "github.com/andlabs/ui/winmanifest"
|
||||
|
||||
// dns
|
||||
// import "github.com/miekg/dns"
|
||||
|
@ -285,5 +287,7 @@ func setupUI() {
|
|||
func main() {
|
||||
parseConfig()
|
||||
|
||||
time.Sleep(2 * 1000 * 1000 * 1000)
|
||||
|
||||
ui.Main(setupUI)
|
||||
}
|
||||
|
|
1
table.go
1
table.go
|
@ -5,6 +5,7 @@ package main
|
|||
import "fmt"
|
||||
import "log"
|
||||
import "github.com/andlabs/ui"
|
||||
import _ "github.com/andlabs/ui/winmanifest"
|
||||
import "github.com/davecgh/go-spew/spew"
|
||||
|
||||
type vmRowData struct {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import "github.com/andlabs/ui"
|
||||
import _ "github.com/andlabs/ui/winmanifest"
|
||||
|
||||
func (mh *modelHandler) NumRows(m *ui.TableModel) int {
|
||||
// log.Println("NumRows() with m=", m)
|
||||
|
|
Loading…
Reference in New Issue