github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/internal/middleware/middleware.go (about) 1 // Package middleware define middlewares for Actions. 2 package middleware 3 4 import "github.com/goreleaser/goreleaser/pkg/context" 5 6 // Action is a function that takes a context and returns an error. 7 // It is is used on Pipers, Defaulters and Publishers, although they are not 8 // aware of this generalization. 9 type Action func(ctx *context.Context) error