Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 1.17 and 1.18 #90

Merged
merged 5 commits into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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