First commit

This commit is contained in:
Melon 2022-07-05 14:03:42 +01:00
commit 49333a12c4
Signed by: melon
GPG Key ID: B0ADD5395BCDAAB6
3 changed files with 19 additions and 0 deletions

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module code.mrmelon54.xyz/sean/test-webview
go 1.18
require github.com/webview/webview v0.0.0-20220705062134-582829eb97c4 // indirect

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/webview/webview v0.0.0-20220705062134-582829eb97c4 h1:5akfYIrC55ye6w5NAu2Lu4iATxYfbCj56TRr6qKeLpE=
github.com/webview/webview v0.0.0-20220705062134-582829eb97c4/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y=

12
main.go Normal file
View File

@ -0,0 +1,12 @@
package main
import "github.com/webview/webview"
func main() {
w := webview.New(false)
defer w.Destroy()
w.SetTitle("Basic Example")
w.SetSize(480, 320, webview.HintNone)
w.SetHtml("<h1>Thanks for using webview!</h1>")
w.Run()
}