Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronelliott/ventana
https://github.com/ronelliott/ventana
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronelliott/ventana
- Owner: ronelliott
- Created: 2024-07-14T18:32:19.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-15T00:25:19.000Z (6 months ago)
- Last Synced: 2024-07-15T22:12:36.072Z (6 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ventana
A small wrapper around [github.com/webview/webview_go](https://github.com/webview/webview_go) to reduce redundant code in small projects.
## Example
```go
package mainimport (
"embed""github.com/ronelliott/ventana"
)//go:embed index.html *.css *.js
var assets embed.FSfunc main() {
window, err := ventana.NewWindow(
ventana.WithDebug(true),
ventana.WithTitle("My Awesome Ventana"),
ventana.WithSize(2400, 1400, ventana.HintFixed),
ventana.WithServerEnabled(assets),
ventana.WithInitialPath("index.html"),
)
if err != nil {
panic(err)
return
}
defer window.Close()
window.Run()
}
```