can-go
can-go copied to clipboard
Make compile public
To be able to use the dbc file to decode messages, it must be parsed and its defs must be consolidated.
This is done in the internal generate
package, so it can't be used by external programs.
This PR makes the compilation part a public package.
Can a smaller part of the generate package be public? Do you have some ideas on this?
My need is to decode CAN messages using a DBC file, but for that I need the compiler to consolidate all the information, but today it is limited to the code generator, I don't know if you want to have this possibility in this library.
Just returning the Defs and the warnings probably should be enough.
Hello @RangelReale! We're actually duplicating this code internally as well, so I think it makes sense that we make parts of it public.
I'll look into it a bit more in the close future!