You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Go] SBE implementation in Go using flyweights (#951)
* [Go] SBE implementation in Go using flyweights #765
To generate flyweights instead of structs, set the following flag:
```
sbe.go.generate.generate.flyweights=true
```
* [Go] Checkstyle fix
* [Go] Fix null string return value
* [Go] Remove spurious type definition for choices
* [Go] Fix formatting in WrapForDecode
* [Go] Add returning an array by []byte
* [Go] Fix array not present in version
* [Go] Add ComputeLength methods
* [Go] Fix some compiler warnings and remove unused code
* [Go] Draft of OTF decoder
* [Go] Add OTF Json Printer
* [Go] Fix SbeBlockAndHeaderLength and add constants for composite sizes
* [Go] Add IrDecoder for runtime types
* [Go] Add enum get method
* [Go] Fixes for updating component counts in irdecoder
* [Go] Run goimports
* [Go] Update with latest changes
* [Go] Change the file structure for GOPATH
* [Go] Fix copywrite year
* [Go] Fix tests for otf
This generates flyweights in the sbe-tool build for use in the otf library.
* [Go] Add helpers for otf PrimitiveValue
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,8 @@ For convenience on Linux, a gnu Makefile is provided that runs some tests and co
97
97
$ cd gocode
98
98
# make # test, examples, bench
99
99
100
+
Go supports both generating Go structs with encode / decode methods, and flyweights like the other languages. Structs are generated by default for compatibility. Set `sbe.go.generate.generate.flyweights=true` to generate flyweights.
101
+
100
102
Users of golang generated code should see the [user
[here](https://github.com/real-logic/simple-binary-encoding/tree/master/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang). There is both a struct and a flyweight generator.
12
15
13
16
Golang code used for testing resides in the top-level
0 commit comments