Skip to content

Struct fields autocompletionΒ #117

Open
@DisposaBoy

Description

@DisposaBoy

It would be nice if gocode offered completion of struct fields. I can do it on the client side by placing a dot after the type and then requesting completion from there but I'm wondering if this is something better implemented in gocode if possble that way all users of gocode can benefit

e.g.

package main

type T struct {
    N int
    S string
}

func main() {
    t := T{
        |cursor|<results in completion of globals>
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions