Skip to content

Struct tags not respected to differentiate between duplicate code #22

@mitar

Description

@mitar

Struct tags is not something one can specify programmatically, so it is not really possible to deduplicate code which is same but differs only in struct tags. But struct tags can drastically influence the behavior of the code logic. For example, we use same struct structure, with different struct tags, to configure/influence how data is processed once pushed through the struct and transformer which uses struct tags as configuration. So code looks very similar (use a struct tag, set data, call transformer, check errors, extract data), but what it does differs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions