init commit
This commit is contained in:
parent
0841a14d37
commit
b470edd39f
5
go.mod
Normal file
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module gitee.ghink.com/ghink/omm-client
|
||||||
|
|
||||||
|
go 1.18
|
||||||
|
|
||||||
|
require github.com/webview/webview v0.0.0-20220816141928-2ee04ccd0530
|
2
go.sum
Normal file
2
go.sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
github.com/webview/webview v0.0.0-20220816141928-2ee04ccd0530 h1:diPvLFzNaRG1c1Qh8s8jWQt/+l8HQs9iQgHvAV4N8q8=
|
||||||
|
github.com/webview/webview v0.0.0-20220816141928-2ee04ccd0530/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y=
|
26
main.go
Normal file
26
main.go
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"embed"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"github.com/webview/webview"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
debug bool = false
|
||||||
|
)
|
||||||
|
|
||||||
|
func init(){
|
||||||
|
flag.BoolVar(&debug, "debug", false, "Debug flag")
|
||||||
|
flag.Parse()
|
||||||
|
}
|
||||||
|
|
||||||
|
func main(){
|
||||||
|
win := webview.New(debug)
|
||||||
|
defer win.Destroy()
|
||||||
|
win.SetTitle(fmt.Sprintf("Oh my mailbox v%s", VERSION))
|
||||||
|
win.SetSize(950, 600, webview.HintNone)
|
||||||
|
win.Run()
|
||||||
|
}
|
1
omm-front
Submodule
1
omm-front
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 3f84d0a2c55a4b80c0c60377bb2b9fbb4fd800b7
|
16
version.go
Normal file
16
version.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
MAJOR_VERSION = 0
|
||||||
|
MINOR_VERSION = 1
|
||||||
|
PATCH_VERSION = 0
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
VERSION = fmt.Sprintf("%d.%d.%d", MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user