Categorygithub.com/asticode/go-astilectron-bootstrap
modulepackage
0.4.14
Repository: https://github.com/asticode/go-astilectron-bootstrap.git
Documentation: pkg.go.dev

# README

This package allows you to quickly create a multi-window application using astilectron.

Check out the demo to see a working example with the bundler.

Important

  • by default all resources should be in a resources folder. If you want to put them in a different folder, be sure to provide its path with the ResourcesPath option
  • if one of your window's URL is a relative path you will need to put your app content in an app folder located in your resources folder

# Functions

Run runs the bootstrap.
SendMessage sends a message.

# Structs

MessageIn represents a message going in.
MessageOut represents a message going out.
Options represents options.
Options to setup and create a new window.

# Type aliases

Asset is a function that retrieves an asset content namely the go-bindata's Asset method.
AssetDir is a function that retrieves an asset dir namely the go-bindata's AssetDir method.
AstilectronAdapter is a function that adapts the astilectron instance.
CallbackMessage represents a bootstrap message callback.
MessageHandler is a functions that handles messages.
OnWait is a function that executes custom actions before waiting.
RestoreAssets is a function that restores assets namely the go-bindata's RestoreAssets method.
WindowAdapter is a function that adapts a window.