Skip to content

Commit

Permalink
integration test for default endianess
Browse files Browse the repository at this point in the history
  • Loading branch information
m29h committed Jan 22, 2024
1 parent 3c0aa01 commit 9c157ab
Show file tree
Hide file tree
Showing 6 changed files with 601 additions and 496 deletions.
312 changes: 156 additions & 156 deletions testcase/bitfield_example_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions testcase/default_byteoder_example.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package test

// with the argument -little we are changing the default byteorder
//###go:generate go run github.com/m29h/struc-gen/cmd/struc-gen -little

type DefaultBO struct {
L int `struc:"uint16"`
B int `struc:"uint16,big"`
}
61 changes: 61 additions & 0 deletions testcase/default_byteoder_example_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c157ab

Please sign in to comment.