Skip to content

how to add a second result type in Go? #1788

Open
@josharian

Description

@josharian

Single result:

func f() error {

Multiple:

func f() ([]byte, error) {

This is a very common transformation during refactoring.

Two questions:

  • How do you refer to error? (Just need pick the right scope name.)
  • Does Cursorless have the infrastructure to add the round wrap after a (say) "drink value/arg/type each"? May interact with Support destination pseudo-scopes #1631 in that prefix/postfix might be relevant when going from 1 to many, not just 0 to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang-goIssues related to Go programming language support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions