Skip to content

cannot use func literal (type func(*goa.Context, func())) as type goa. Middleware in return argument #1

@tablecell

Description

@tablecell

main.go

package main

import (
 "log"
  "github.com/goa-go/goa"
  "github.com/goa-go/logger"
)

func main() {
  app := goa.New()

  app.Use(logger.New())
   log.Fatal(app.Listen(":3000"))
}

go run main.go
go\pkg\mod\github.com\goa-go\[email protected]\logger.go:22:9: cannot use func literal (type func(*goa.Context, func())) as type goa.
Middleware in return argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions