Skip to content

Commit

Permalink
add 1.17 and 1.18 (#90)
Browse files Browse the repository at this point in the history
* add 1.17 and 1.18

* support 64 bit types

* debug failures

* use the right bin
  • Loading branch information
abice committed Mar 19, 2022
1 parent 861d2dc commit ff7c099
Show file tree
Hide file tree
Showing 11 changed files with 1,123 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
# Drop support of go 1.12
- "1.13"
- "1.14"
- "1.15"
- "1.16"
- "1.17"
- "1.18"
name: run tests with go version ${{ matrix.go }}
steps:
- name: install go
Expand Down
23 changes: 23 additions & 0 deletions example/enum_32_bit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//go:generate ../bin/go-enum -f=$GOFILE --ptr --marshal

package example

/* ENUM(
Unkno = 0
E2P15 = 32768
E2P16 = 65536
E2P17 = 131072
E2P18 = 262144
E2P19 = 524288
E2P20 = 1048576
E2P21 = 2097152
E2P22 = 33554432
E2P23 = 67108864
E2P28 = 536870912
E2P30 = 1073741824
)
*/
type Enum32bit uint32
106 changes: 106 additions & 0 deletions example/enum_32_bit_enum.go

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

26 changes: 26 additions & 0 deletions example/enum_64_bit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//go:generate ../bin/go-enum -f=$GOFILE --ptr --marshal

package example

/* ENUM(
Unkno = 0
E2P15 = 32768
E2P16 = 65536
E2P17 = 131072
E2P18 = 262144
E2P19 = 524288
E2P20 = 1048576
E2P21 = 2097152
E2P22 = 33554432
E2P23 = 67108864
E2P28 = 536870912
E2P30 = 1073741824
E2P31 = 2147483648
E2P32 = 4294967296
E2P33 = 8454967296
E2P63 = 18446744073709551615
)
*/
type Enum64bit uint64
122 changes: 122 additions & 0 deletions example/enum_64_bit_enum.go

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

Loading

0 comments on commit ff7c099

Please sign in to comment.