Skip to content

Add quick fix to change unused variable to _ #1337

@dlsniper

Description

@dlsniper
package main

import "fmt"

func demo() (int, int) {
    return 1, 2
}

func main() {
    a, b := demo()
    fmt.Printf("a:\n", a)
}

Currently b is reported as unused but there could be a quick fix to change it to _:

    a, _ := demo()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions