1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00
pasty/internal/meta/metadata.go

15 lines
223 B
Go
Raw Permalink Normal View History

2023-06-07 18:46:19 +03:00
package meta
import "strings"
const devEnvironmentName = "dev"
var (
Environment = devEnvironmentName
2023-06-08 20:55:43 +03:00
Version = "dev"
2023-06-07 18:46:19 +03:00
)
func IsProdEnvironment() bool {
return strings.ToLower(Environment) != devEnvironmentName
}