This repo is for run webview on windows.
- add WebView.MapDir for local files.
- change hook namespace from window to window.eel, call hook function in format of eel.xxx instead.
- clone this repo
- run build.bat in MSVC cmd, and you will got webview.*
- put webview.* to root of your repo, or other path on demand
- add the link flag to your code
/*
#cgo windows LDFLAGS: -L${SRCDIR} -lwebview
*/
import "C"
import "github.com/codeindex2937/webview"