mirror of
https://github.com/goreleaser/nfpm
synced 2025-04-19 19:57:57 +02:00
* feat: allow to set a build date defaults to $SOURCE_DATE_EPOCH closes #744 closes #734 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: rename to mtime * docs: fix systemd note closes #739 * fix: improve arch packager * fix: arch test Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: improve apk packager * fix: improve deb special files * fix: reuse keys func * fix: deps Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
14 lines
161 B
Go
14 lines
161 B
Go
package maps
|
|
|
|
import (
|
|
"sort"
|
|
|
|
"golang.org/x/exp/maps"
|
|
)
|
|
|
|
func Keys[T any](m map[string]T) []string {
|
|
keys := maps.Keys(m)
|
|
sort.Strings(keys)
|
|
return keys
|
|
}
|