github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/pkg/config/build.go (about)

     1  package build
     2  
     3  const (
     4  	// ModeDev is the development release value
     5  	ModeDev = "development"
     6  	// ModeProd is the production release value
     7  	ModeProd = "production"
     8  )
     9  
    10  var (
    11  	// Version of the release (see scripts/build.sh script)
    12  	Version string
    13  	// BuildTime is ISO-8601 UTC string representation of the time of
    14  	// the build
    15  	BuildTime string
    16  	// BuildMode is the build mode of the release. Should be either
    17  	// production or development.
    18  	BuildMode = ModeDev
    19  )
    20  
    21  // IsDevRelease returns whether or not the binary is a development
    22  // release
    23  func IsDevRelease() bool {
    24  	return BuildMode == ModeDev
    25  }