Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 605aaaf

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

File tree

3 files changed

+14
-2
lines changed
Filter options

3 files changed

+14
-2
lines changed

‎revel.go

Copy file name to clipboardExpand all lines: revel.go
+1Lines 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

Copy file name to clipboard
+10Lines 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

Copy file name to clipboard
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.