Skip to content

Put caret after curlies when completing "interface{}" #2797

@deadok22

Description

@deadok22

On type of "{" after 'interface', the caret is put between the curly braces.

It's really annoying, especially when initializing slices of interface{}:

func Test() {
  ifaces := []interface<caret>
}

The caret is put inside the curly braces and I instinctively start typing in values, which breaks parsing. And it's not immediately apparent what's wrong, so I end up scratching my head for several seconds =)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions