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
9c0aad06
Commit
9c0aad06
authored
Oct 24, 2014
by
astaxie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #880 from chenghuama/patch-3
Update ini.go
parents
710f5b62
180c6aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ini.go
config/ini.go
+6
-0
No files found.
config/ini.go
View file @
9c0aad06
...
...
@@ -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
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