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
a1f6039d
authored
2013-12-24 21:59:00 +0800
by
傅小黑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gofmt code
1 parent
0183608a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
cache/file.go
config/config.go
config/ini.go
config/json.go
config/xml.go
cache/file.go
View file @
a1f6039
config/config.go
View file @
a1f6039
config/ini.go
View file @
a1f6039
config/json.go
View file @
a1f6039
...
...
@@ -53,7 +53,7 @@ func (c *JsonConfigContainer) Bool(key string) (bool, error) {
}
else
{
return
false
,
errors
.
New
(
"not exist key:"
+
key
)
}
return
false
,
nil
return
false
,
nil
}
// Int returns the integer value for a given key.
...
...
@@ -68,7 +68,7 @@ func (c *JsonConfigContainer) Int(key string) (int, error) {
}
else
{
return
0
,
errors
.
New
(
"not exist key:"
+
key
)
}
return
0
,
nil
return
0
,
nil
}
// Int64 returns the int64 value for a given key.
...
...
@@ -83,7 +83,7 @@ func (c *JsonConfigContainer) Int64(key string) (int64, error) {
}
else
{
return
0
,
errors
.
New
(
"not exist key:"
+
key
)
}
return
0
,
nil
return
0
,
nil
}
// Float returns the float value for a given key.
...
...
@@ -98,7 +98,7 @@ func (c *JsonConfigContainer) Float(key string) (float64, error) {
}
else
{
return
0.0
,
errors
.
New
(
"not exist key:"
+
key
)
}
return
0.0
,
nil
return
0.0
,
nil
}
// String returns the string value for a given key.
...
...
@@ -132,7 +132,7 @@ func (c *JsonConfigContainer) DIY(key string) (v interface{}, err error) {
}
else
{
return
nil
,
errors
.
New
(
"not exist key"
)
}
return
nil
,
nil
return
nil
,
nil
}
// section.key or key
...
...
config/xml.go
View file @
a1f6039
package
config
import
(
...
...
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