This example plugin provides a way to generate hashes of strings.
Add the plugin to the Services
option in the Applications options:
Services: []application.Service{
application.NewService(sqlite.NewPlugin()),
},
You can then call the methods from the frontend:
wails.Plugin("sqlite","All","hello world").then((result) => console.log(result))
This method returns a struct with the following fields:
interface Hashes {
MD5: string;
SHA1: string;
SHA256: string;
}
A TypeScript definition file is provided for this interface.
If you find a bug in this plugin, please raise a ticket here. Please do not contact the Wails team for support.