v1.2.0
Go Language Target is Supported!
Now you can use go as language target, like this:
bubbler -t go -o /path/to/mydir/ ./example.bb
go
: Go language, output one.bb.go
file for each.bb
file. The folder structure will be affected by thego_package
option. (i.e.,github.com/xaxys/bubbler
will generate in thegithub.com/xaxys/bubbler
directory)- With
-single
: Output one file that includes all definitions for all.bb
files. The output file name (including the extension) is determined by the-o
option. The package name is determined by the package statement of the input.bb
file. - With
-memcpy
: make a copy of thebytes
field when decoding. Thestring
field will always be copied. - Without
-memcpy
: a slice of the original buffer will be assigned to thebytes
field. Thestring
field will always be copied.
- With