atc0005 / go-nagios

Shared Golang package for Nagios plugins
MIT License
8 stars 3 forks source link

Rename primary `ExitState` type to `Plugin`, `New` constructor to `NewPlugin` #169

Closed atc0005 closed 1 year ago

atc0005 commented 1 year ago

Instead of duplicating code in order to provide deprecation of the ExitState, replace it directly with a Plugin type.

Because (as of this writing) pkg.go.dev and GitHub do not show any other projects using this code (aside from projects that I currently maintain), this is a relatively safe breaking change to make.

CI jobs will flag breakage for dependent projects so that I can pair client code changes with merging in a PR containing these changes.