Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
fa44ff54
Commit
fa44ff54
authored
Mar 05, 2017
by
astaxie
Committed by
GitHub
Mar 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2479 from marianofevola/develop
Fix typo
parents
4c6de379
e0250e28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ini.go
config/ini.go
+1
-1
yaml.go
config/yaml/yaml.go
+1
-1
No files found.
config/ini.go
View file @
fa44ff54
...
...
@@ -300,7 +300,7 @@ func (c *IniConfigContainer) GetSection(section string) (map[string]string, erro
if
v
,
ok
:=
c
.
data
[
section
];
ok
{
return
v
,
nil
}
return
nil
,
errors
.
New
(
"not exist se
t
ction"
)
return
nil
,
errors
.
New
(
"not exist section"
)
}
// SaveConfigFile save the config into file.
...
...
config/yaml/yaml.go
View file @
fa44ff54
...
...
@@ -252,7 +252,7 @@ func (c *ConfigContainer) GetSection(section string) (map[string]string, error)
if
v
,
ok
:=
c
.
data
[
section
];
ok
{
return
v
.
(
map
[
string
]
string
),
nil
}
return
nil
,
errors
.
New
(
"not exist se
t
ction"
)
return
nil
,
errors
.
New
(
"not exist section"
)
}
// SaveConfigFile save the config into file
...
...
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