gencode icon indicating copy to clipboard operation
gencode copied to clipboard

Results 11 gencode issues
Sort by recently updated
recently updated
newest added

I see that when I convert the slice into a byte array, I traverse it. If you can judge the slice length here, when the slice length is too large,...

currently ints and floats encoded in little endian. in some cases it is preferred to have bigendian (for example for encoding keys for leveldb like databases). here is a small...

The Readme.md does not describe where to find the gencode executable. Its not present as a linux package as well

Allow for custom types that are able to marschall themselves. For example, the following should assume that the type Data in package A has the Size, Marschall and Unmarschall functions...

One question - in the generated code I see many instances of i+0. I'm pretty sure that the compiler will optimize those out, but I'm curious why they are there.

A field with type `[][32]byte` will generate code like: ``` for k0 := range d.Foo { { s += 32 } } ``` The `k0` is unused and prevents compilation...

Add a competitor to the benchmarks.

``` $ ls gencode.schema main.go $ cat main.go package main //go:generate gencode go -schema gencode.schema func main() { var x Foo x.Unmarshal([]byte{}) } $ cat gencode.schema struct Foo { Bar...

``` $ cat foo.schema garbage $ gencode go -schema foo.schema $ echo $? 0 ```

Do you have installation of gencode tutorial or something to work with? Thanks.