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 "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)
|
||||||
}
|
}
|
||||||
|
|
1
table.go
1
table.go
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue