1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00
This commit is contained in:
Carlos Alexandro Becker
2017-07-01 12:15:45 -03:00
parent 059942124a
commit d286dffd52

View File

@@ -1,3 +1,5 @@
// Package name provides name template logic for the final archive, formulae,
// etc.
package name
import (
@@ -16,6 +18,7 @@ type nameData struct {
Binary string
}
// For returns the name for the given context, goos, goarch and goarm.
func For(ctx *context.Context, goos, goarch, goarm string) (string, error) {
var data = nameData{
Os: replace(ctx.Config.Archive.Replacements, goos),