Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ronelliott/ventana


https://github.com/ronelliott/ventana

Last synced: about 2 months ago
JSON representation

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 main

import (
"embed"

"github.com/ronelliott/ventana"
)

//go:embed index.html *.css *.js
var assets embed.FS

func 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()
}
```