freeconf / restconf

Implementation of RESTCONF Management protocol - IETF RFC8040

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Improve reflection support

rFronteddu opened this issue · comments

I am no expert on reflection in go but I was wondering if you had any plan to support reflection for base types such as the example that follows. I was surprised to have to use a custom parser (albeit a simple one) to parse a list of string and integers.

    list bar {
        key foo;
        leaf foo {
            type int32 {
                range "0..120";
            }
        }
        leaf baz {
            type string;
        }
    }

I will be studying reflection in Golang soon. If I have some time I will try to cook something.