Skip to content

confgen(IgnoreRows): add a specifier to ignore some rows of data #256

@Kybxd

Description

@Kybxd

For example, we can add a new specifier #IGNORE to prevent ID=2 row from exporting, so it' will not be generated to JSON/Text/Bin file.
The #IGNORE column cell should be parsed by strconv.ParseBool, which can accept 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False.

ID Name Desc #IGNORE
map<uint32, Item> string string
Item’s ID Item’s name Item’s desc
1 Apple A kind of delicious fruit.
2 Orange A kind of sour fruit. true
3 Banana A kind of calorie-rich fruit.
{
    "itemMap": {
        "1": {
            "id": 1,
            "name": "Apple",
            "desc": "A kind of delicious fruit."
        },
        "3": {
            "id": 3,
            "name": "Banana",
            "desc": "A kind of calorie-rich fruit."
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions