all: Format code with gofumpt

See https://github.com/mvdan/gofumpt
This commit is contained in:
Bjørn Erik Pedersen
2020-12-02 13:23:25 +01:00
parent 32471b57bd
commit d90e37e0c6
442 changed files with 1426 additions and 2254 deletions

View File

@@ -59,7 +59,6 @@ func (l *pageLexer) Iterator() *Iterator {
func (l *pageLexer) Input() []byte {
return l.input
}
type Config struct {
@@ -286,7 +285,6 @@ func (s *sectionHandlers) skip() int {
}
func createSectionHandlers(l *pageLexer) *sectionHandlers {
shortCodeHandler := &sectionHandler{
l: l,
skipFunc: func(l *pageLexer) int {
@@ -327,7 +325,6 @@ func createSectionHandlers(l *pageLexer) *sectionHandlers {
skipFunc: func(l *pageLexer) int {
if l.summaryDividerChecked || l.summaryDivider == nil {
return -1
}
return l.index(l.summaryDivider)
},
@@ -343,7 +340,6 @@ func createSectionHandlers(l *pageLexer) *sectionHandlers {
l.emit(TypeLeadSummaryDivider)
return origin, true
},
}
@@ -425,7 +421,6 @@ func (s *sectionHandler) skip() int {
}
func lexMainSection(l *pageLexer) stateFunc {
if l.isEOF() {
return lexDone
}
@@ -451,11 +446,9 @@ func lexMainSection(l *pageLexer) stateFunc {
l.pos = len(l.input)
return lexDone
}
func lexDone(l *pageLexer) stateFunc {
// Done!
if l.pos > l.start {
l.emit(tText)