Skip to content

Commit d5439ad

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
feat: generate constant alias re-exports in parent packages
Add renderConstAliases to javagen that generates constants.go in each parent package (e.g. location/constants.go) with aliases like GpsProvider = consts.GpsProvider. This lets CGO-dependent code use location.GpsProvider directly while the CGO-free source of truth remains in location/consts/consts.go.
1 parent 52671b0 commit d5439ad

52 files changed

Lines changed: 3205 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

accounts/constants.go

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/admin/constants.go

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/alarm/constants.go

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/constants.go

Lines changed: 511 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/download/constants.go

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/job/constants.go

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/notification/constants.go

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/role/constants.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/usage/constants.go

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)