projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81c41d6
)
parser: apply some Golint rules
author
bep
<bjorn.erik.pedersen@gmail.com>
Sat, 7 Mar 2015 11:59:04 +0000
(12:59 +0100)
committer
bep
<bjorn.erik.pedersen@gmail.com>
Sat, 7 Mar 2015 11:59:04 +0000
(12:59 +0100)
parser/page.go
patch
|
blob
|
history
diff --git
a/parser/page.go
b/parser/page.go
index e384d385825519850c2caa6618d40eccf549922f..65a62a5660b98fa24bde47c7b7ce1f80dd2a2185 100644
(file)
--- a/
parser/page.go
+++ b/
parser/page.go
@@
-132,7
+132,7
@@
func peekLine(r *bufio.Reader) (line []byte, err error) {
if idx == -1 {
return firstFive, nil
}
- idx
+= 1
// include newline.
+ idx
++
// include newline.
return firstFive[:idx], nil
}
@@
-184,8
+184,8
@@
func extractFrontMatterDelims(r *bufio.Reader, left, right []byte) (fm FrontMatt
var (
c byte
buf bytes.Buffer
- level int
= 0
- sameDelim
bool
= bytes.Equal(left, right)
+ level int
+ sameDelim = bytes.Equal(left, right)
)
// Frontmatter must start with a delimiter. To check it first,