Skip to content

thoughtgears/plugins-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugins POC

A simple test to see if there is a smart way to manage plugins using an interface in golang. This is to explore the possibilites to create an application that can use multiple plugins using the same interface to expect the same result at all times.

Use this as an example of how to use plugins in golang.

Example execution

Executing 'api-checker': Checking URL 'https://api.example.com/health'...
Result of 'api-checker': true
Executing 'input-analyzer': Analyzing input...
Check PASSED: Forbidden word not found.
Result of 'input-analyzer': true
Executing 'input-analyzer': Analyzing input...
Check FAILED: Forbidden word 'error' found.
Result of 'input-analyzer': false
Successfully caught expected error: plugin: no plugin named 'non-existent-plugin' is registered

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages