Hey, thanks for the nice project, helps me a lot!
I'm using it to generate bindings to xcb, and I'm using options.enumValueNameRemovePostfixes = []string{"_t"}; just like in the example generator. Unfortunately, it removes not only _t from enum values, but also just T at the end of the enum value, so that
XCB_WINDOW_CLASS_INPUT_OUTPUT becomes WINDOW_CLASS_INPUT_OUTPU - note no T at the end. I've tried it on the latest master.
UPD:
it's not just options.enumValueNameRemovePostfixes = []string{"_t"};, it's actually a combination of these two that bugs out:
Hey, thanks for the nice project, helps me a lot! I'm using it to generate bindings to xcb, and I'm using
options.enumValueNameRemovePostfixes = []string{"_t"};
just like in the example generator. Unfortunately, it removes not only_t
from enum values, but also justT
at the end of the enum value, so thatXCB_WINDOW_CLASS_INPUT_OUTPUT
becomesWINDOW_CLASS_INPUT_OUTPU
- note no T at the end. I've tried it on the latest master.UPD: it's not just
options.enumValueNameRemovePostfixes = []string{"_t"};
, it's actually a combination of these two that bugs out:also full generator, just for reference: