init commit

This commit is contained in:
zyxkad 2022-08-20 22:56:55 -06:00
parent 0841a14d37
commit b470edd39f
No known key found for this signature in database
GPG Key ID: 75D46E883711CD87
5 changed files with 50 additions and 0 deletions

5
go.mod Normal file
View 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
View 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
View 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

@ -0,0 +1 @@
Subproject commit 3f84d0a2c55a4b80c0c60377bb2b9fbb4fd800b7

16
version.go Normal file
View 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)
)