wails/v3/plugins/log
2023-06-09 00:41:43 +00:00
..
plugin.go Reorder startup sequence 2023-03-24 08:43:00 +11:00
plugin.js Reorder startup sequence 2023-03-24 08:43:00 +11:00
plugin.toml Simple logging plugin 2023-03-22 20:56:45 +11:00
README.md docs: format document 2023-06-09 00:41:43 +00:00

log Plugin

This example plugin provides a way to generate hashes of strings.

Installation

Add the plugin to the Plugins option in the Applications options:

    Plugins: map[string]application.Plugin{
        "log": log.NewPlugin(),
    },

Usage

You can then call the methods from the frontend:

wails.Plugin("log", "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.

Support

If you find a bug in this plugin, please raise a ticket here. Please do not contact the Wails team for support.