Skip to content

Go wraps cannot throw errors #1927

Description

@krisbitney

Describe the bug
This is the generated interface for a module with a single method that returns a string:

type Module interface {
    Obscure(args *ArgsObscure) string
}

Since errors cannot be thrown in Go, we should handle them in the bindings as with do with Rust's Result type:

type Module interface {
    Obscure(args *ArgsObscure) (string, error)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions