Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bd0570dc
authored
Oct 27, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
4f95199d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
.gitignore
pkg/config/config.go
.gitignore
View file @
bd0570dc
...
@@ -11,3 +11,4 @@ cmd.exe~
...
@@ -11,3 +11,4 @@ cmd.exe~
/conf/*.ini
/conf/*.ini
/conf/prod
/conf/prod
/conf/prod
pkg/config/config.go
View file @
bd0570dc
...
@@ -11,7 +11,7 @@ var (
...
@@ -11,7 +11,7 @@ var (
func
SetUp
(
path
string
)
(
err
error
)
{
func
SetUp
(
path
string
)
(
err
error
)
{
//引入多个文件
//引入多个文件
Cfg
,
err
=
ini
.
LooseLoad
(
path
+
"/config.ini"
,
path
+
"/database.ini"
,
path
+
"/elastic.ini"
,
path
+
"/rabmq.ini"
,
path
+
"/redis.ini"
,
path
+
"/search.ini"
)
Cfg
,
err
=
ini
.
LooseLoad
(
path
+
"/config.ini"
,
path
+
"/database.ini"
,
path
+
"/elastic.ini"
,
path
+
"/rabmq.ini"
,
path
+
"/redis.ini"
,
path
+
"/search.ini"
,
path
+
"/mongo.ini"
)
return
return
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment