gomonop/pkg/program/program.go
Emmanuel BENOîT 5432360f0e
refactor(pkg): refactor Plugin to make it easier to test
Writing the plugin's output string and exiting the program will no
longer take place in the plugin status itself. It will only be done in
the main program.
2024-07-19 23:46:33 +02:00

11 lines
222 B
Go

package program // import nocternity.net/gomonop/pkg/program
import "nocternity.net/gomonop/pkg/plugin"
type Program interface {
Output() *plugin.Plugin
CheckArguments() bool
RunCheck()
}
type Builder func() Program