mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
994d01a0ce
<!-- 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: standstaff <zhengxingru@yeah.net>
10 lines
348 B
Go
10 lines
348 B
Go
// Package middleware define middlewares for Actions.
|
|
package middleware
|
|
|
|
import "github.com/goreleaser/goreleaser/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
|