Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ccb61f04
authored
2014-08-25 21:31:53 +0800
by
xianyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gofmt
Signed-off-by: devYu <devysq@gmail.com>
1 parent
14629c21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
config/ini.go
config/ini.go
View file @
ccb61f0
...
...
@@ -206,7 +206,7 @@ func (c *IniConfigContainer) DefaultFloat(key string, defaultval float64) float6
}
// String returns the string value for a given key.
func
(
c
*
IniConfigContainer
)
String
(
key
string
)
string
{
func
(
c
*
IniConfigContainer
)
String
(
key
string
)
string
{
return
c
.
getdata
(
key
)
}
...
...
@@ -337,12 +337,11 @@ func (c *IniConfigContainer) DIY(key string) (v interface{}, err error) {
// section.key or key
func
(
c
*
IniConfigContainer
)
getdata
(
key
string
)
string
{
if
len
(
key
)
==
0
{
if
len
(
key
)
==
0
{
return
""
}
c
.
RLock
()
c
.
RLock
()
defer
c
.
RUnlock
()
var
(
section
,
k
string
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment