plugin

package
v0.0.0-...-a007d9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package plugin implements the common code to implement a wi plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(plugin wicore.Plugin) int

Main is the function to call from your plugin to initiate the communication channel between wi and your plugin.

Returns the exit code that should be passed to os.Exit().

Types

type PluginImpl

type PluginImpl struct {
	Name        string
	Description lang.Map
}

PluginImpl is the base implementation of interface wicore.Plugin. Embed this structure and override the functions desired.

func (*PluginImpl) Close

func (p *PluginImpl) Close() error

Close implements wicore.Plugin.

func (*PluginImpl) Details

func (p *PluginImpl) Details() wicore.PluginDetails

Details implements wicore.Plugin.

func (*PluginImpl) Init

func (p *PluginImpl) Init(e wicore.Editor)

Init implements wicore.Plugin.

func (*PluginImpl) String

func (p *PluginImpl) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL