all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -33,7 +33,7 @@ func (i Item) ValStr() string {
return string(i.Val)
}
func (i Item) ValTyped() interface{} {
func (i Item) ValTyped() any {
str := i.ValStr()
if i.isString {
// A quoted value that is a string even if it looks like a number etc.

View File

@@ -176,7 +176,7 @@ func (l *pageLexer) ignore() {
var lf = []byte("\n")
// nil terminates the parser
func (l *pageLexer) errorf(format string, args ...interface{}) stateFunc {
func (l *pageLexer) errorf(format string, args ...any) stateFunc {
l.items = append(l.items, Item{tError, l.start, []byte(fmt.Sprintf(format, args...)), true})
return nil
}

View File

@@ -42,7 +42,7 @@ func Parse(r io.Reader, cfg Config) (Result, error) {
type ContentFrontMatter struct {
Content []byte
FrontMatter map[string]interface{}
FrontMatter map[string]any
FrontMatterFormat metadecoders.Format
}