mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> ... <!-- Why is this change being made? --> ... <!-- # Provide links to any relevant tickets, URLs or other resources --> ... --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
10 lines
351 B
Go
10 lines
351 B
Go
// Package middleware define middlewares for Actions.
|
|
package middleware
|
|
|
|
import "github.com/goreleaser/goreleaser/v2/pkg/context"
|
|
|
|
// Action is a function that takes a context and returns an error.
|
|
// It is used on Pipers, Defaulters and Publishers, although they are not
|
|
// aware of this generalization.
|
|
type Action func(ctx *context.Context) error
|