Skip to content

Commit 605aaaf

Browse files
committed
Adds Go code to announce version when Revel initializes; Tweaks version file attributes
1 parent 001c7a2 commit 605aaaf

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

revel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func Init(mode, importPath, srcPath string) {
201201
loadModules()
202202

203203
Initialized = true
204+
INFO.Printf("Initialized Revel v%s (%s) for %s", VERSION, BUILD_DATE, MINIMUM_GO)
204205
}
205206

206207
// Create a logger using log.* directives in app.conf plus the current settings

version.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package revel
2+
3+
const (
4+
// Current Revel version
5+
VERSION = "0.12.0dev"
6+
// Latest commit date
7+
BUILD_DATE = "2015-01-19"
8+
// Minimum required Go version
9+
MINIMUM_GO = ">= go1.3"
10+
)

version.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
revel: 0.12.0-develop
2-
date: 2015-01-19
1+
version: 0.12.0dev
2+
buildDate: 2015-01-23
3+
requiredGo: >= go1.3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy