Skip to content

v1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Dec 17:50
· 11 commits to master since this release

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 the go_package option. (i.e., github.com/xaxys/bubbler will generate in the github.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 the bytes field when decoding. The string field will always be copied.
    • Without -memcpy: a slice of the original buffer will be assigned to the bytes field. The string field will always be copied.

Changelog