pluginapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available reports whether a Pro implementation was registered.

func EnhanceTextIfAvailable

func EnhanceTextIfAvailable(input string) (string, error)

EnhanceTextIfAvailable runs the pro enhancement if available, otherwise returns the original text unmodified.

func Register

func Register(p ProFeatures)

Register is called by the pro module to wire in its implementation. The public repo never imports the pro module; the pro module imports this package and calls Register in its init() or explicit setup.

Types

type ProFeatures

type ProFeatures interface {
	// Example: EnhanceText receives input and returns enhanced text.
	EnhanceText(input string) (string, error)
}

ProFeatures is the interface that the Pro repo implements to provide additional (commercial) functionality. Keep methods minimal and focused on behavior rather than types to avoid tight coupling.

Jump to

Keyboard shortcuts

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