plugins

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: ISC Imports: 6 Imported by: 0

Documentation

Overview

Package plugins provides a source for cchat services as Go plugins. This package looks in UserConfigDir()/cchat/plugins/ by default.

Usage

The package can easily be used by just dash importing it:

_ "github.com/diamondburned/cchat/services/plugins"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPluginPath

func SetPluginPath(path string)

SetPluginPath sets the plugin path before loading plugins. This only works until LoadPlugins is called.

func TryConfigPath

func TryConfigPath(suffix ...string) (string, error)

TryConfigPath returns a path to $cfgDir/suffix. cfgDir is from os.UserConfigDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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