Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Panics for functions without body closures #3

@fatih

Description

@fatih

This panics:

package main

func foo(bar string)

func main() {}

This is valid AST, but not valid go program. Can easily happen during refactor or if we write new code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions