mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 00:09:56 +08:00
31 lines
702 B
Go
31 lines
702 B
Go
package application
|
|
|
|
import (
|
|
"io/fs"
|
|
"net/http"
|
|
|
|
"github.com/wailsapp/wails/v3/pkg/logger"
|
|
)
|
|
|
|
type Options struct {
|
|
Name string
|
|
Description string
|
|
Icon []byte
|
|
Mac MacOptions
|
|
Bind []any
|
|
Logger struct {
|
|
Silent bool
|
|
CustomLoggers []logger.Output
|
|
}
|
|
Assets AssetOptions
|
|
}
|
|
|
|
type AssetOptions struct {
|
|
// FS to use for loading assets from
|
|
FS fs.FS
|
|
// Handler is a custom handler to use for serving assets. If this is set, the `URL` and `FS` fields are ignored.
|
|
Handler http.Handler
|
|
// Middleware is a custom middleware to use for serving assets. If this is set, the `URL` and `FS` fields are ignored.
|
|
Middleware func(http.Handler) http.Handler
|
|
}
|