Skip to content

protoc-gen-go-tableau-checker v0.3.0

Latest
Compare
Choose a tag to compare
@wenchy wenchy released this 21 Aug 03:20
· 2 commits to master since this release
1dca20f

What's Changed

  • feat!: move positional argument filter to options by @wenchy in #8
  • feat: upgrade release workflow by @wenchy in #9

❗BREAKING CHANGE

Hub Check and CheckCompatibility function signatures

func (h *Hub) Check(dir string, filter tableau.Filter, format format.Format, options ...Option) error
func (h *Hub) CheckCompatibility(dir, newDir string, filter tableau.Filter, format format.Format, options ...Option) error {

are now refactored to:

func (h *Hub) Check(dir string, format format.Format, options ...Option) error
func (h *Hub) CheckCompatibility(dir, newDir string, format format.Format, options ...Option) error {

The filter argument is moved to Option, now you can provide filter like this:

func main() {
	err := check.NewHub().Check("/your/conf/", format.JSON,
		check.Filter(func(name string) bool {
			return true
		}))
        err2 := check.NewHub().CheckCompatibility("/your/conf/", "/your/conf2/", format.JSON,
		check.Filter(func(name string) bool {
			return true
		}))
	...
}

Full Changelog: cmd/protoc-gen-go-tableau-checker/v0.2.0...cmd/protoc-gen-go-tableau-checker/v0.3.0