string with a better syntax? need to specify the length type, consider specifying a fixed size too? (i dont think it is possible right now)
for this, we need to generate some test code either do something nuts using reflection and go to have a single test file for all possible structs or just generate a basic thing making random assignments, encoding and decoding and seeing if it matches
files in pass need to generate an output and go build should work on them files in fail will fail (duh) run ../pstruct{} EXE_SUFFIX with the specified files every run, make new directory, output into it, nuke it afterwards if we do the above, run go test as well
two folders in the test dir -> how to reference it? do i just include_bytes! the files into the tests?
not sure if i could do something like rgtest! but that runs by looking at all files in a dir, maybe if that was done at compile time?
actually maybe i dont need that, but tbh i probably do i could, but then i’d need to make my own proc macro apparently? makes sense i guess? doesn’t look too bad, i should do it could also just use test-generator lol making a proc macro using glob seems fun tho
Remove encode/decode from the Go interface and put it in the runtime taking an interface Struct as parameter
existing string would become []string should just remove string altogether likely, it’s weird right now
requires go runtime change