Skip to content

fix(tars2go): Resolve TByte support and trace variable shadowing bugs #511

@weigod

Description

@weigod

1, tars/tools/tars2go/gencode/gen_go.go typeDef function need surport TByte
2, In tars/tools/tars2go/gen_go.go, the genTarsTrace function generates code for RPC tracing. Inside this generated code, a new local variable value is declared as map[string]interface{} (value := map[string]interface{}{} ).
This creates a variable shadowing problem if the Tars interface function has an out parameter that is also named value (e.g., out string value).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions