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
9c0aad06
authored
2014-10-24 14:15:49 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #880 from chenghuama/patch-3
Update ini.go
2 parents
710f5b62
180c6aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
config/ini.go
config/ini.go
View file @
9c0aad0
...
...
@@ -66,6 +66,12 @@ func (ini *IniConfig) Parse(name string) (ConfigContainer, error) {
var
comment
bytes
.
Buffer
buf
:=
bufio
.
NewReader
(
file
)
head
,
err
:=
buf
.
Peek
(
3
)
if
err
==
nil
&&
head
[
0
]
==
239
&&
head
[
1
]
==
187
&&
head
[
2
]
==
191
{
for
i
:=
1
;
i
<=
3
;
i
++
{
buf
.
ReadByte
()
}
}
section
:=
DEFAULT_SECTION
for
{
line
,
_
,
err
:=
buf
.
ReadLine
()
...
...
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