Skip to content

Commit ddae92c

Browse files
committed
revel#1061 - revel/config referred across
1 parent b0e6e72 commit ddae92c

File tree

6 files changed

+7
-139
lines changed

6 files changed

+7
-139
lines changed

cache/redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66
"time"
77

8+
"github.com/revel/config"
89
"github.com/revel/revel"
9-
"github.com/revel/revel/config"
1010
)
1111

1212
// These tests require redis server running on localhost:6379 (the default)

config/config.go

Lines changed: 0 additions & 130 deletions
This file was deleted.

i18n.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"regexp"
88
"strings"
99

10-
"github.com/robfig/config"
10+
"github.com/revel/config"
1111
)
1212

1313
const (

i18n_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/revel/revel/config"
10+
"github.com/revel/config"
1111
)
1212

1313
const (

revel.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ import (
1111
"runtime"
1212
"strings"
1313

14-
revConfig "github.com/revel/revel/config"
15-
1614
"github.com/agtorre/gocolorize"
17-
"github.com/robfig/config"
15+
"github.com/revel/config"
1816
)
1917

2018
const (
@@ -40,7 +38,7 @@ var (
4038
ImportPath string // e.g. "corp/sample"
4139
SourcePath string // e.g. "/Users/robfig/gocode/src"
4240

43-
Config *revConfig.Context
41+
Config *config.Context
4442
RunMode string // Application-defined (by default, "dev" or "prod")
4543
DevMode bool // if true, RunMode is a development mode.
4644

@@ -160,7 +158,7 @@ func Init(mode, importPath, srcPath string) {
160158

161159
// Load app.conf
162160
var err error
163-
Config, err = revConfig.LoadContext("app.conf", ConfPaths)
161+
Config, err = config.LoadContext("app.conf", ConfPaths)
164162
if err != nil || Config == nil {
165163
log.Fatalln("Failed to load app.conf:", err)
166164
}

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"regexp"
1515
"strings"
1616

17-
"github.com/revel/revel/config"
17+
"github.com/revel/config"
1818
)
1919

2020
const (

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