• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / enum
100%

Build:
DEFAULT BRANCH: master
Repo Added 16 Feb 2025 09:48AM UTC
Files 3
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-go1.23-iterator
  • chore/modernize-any
  • ci/lint-version
  • ci/workflow-hardening
  • deps/update-latest
  • feat/bson-sql-yaml-support
  • feature/alias-support
  • fix-missing-import-wo-lower-flag
  • fix/const-expr-eval
  • fix/minmax-untyped-float
  • get-enum-value-by-the-int-value
  • major-refactor-and-enhancements
  • preserve-original-value-type
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.1.3
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.7.1
  • refs/tags/v0.7.2
  • split-template-from-code
  • sql
  • support-for-complex-type-names

19 Aug 2026 07:25AM UTC coverage: 100.0%. Remained the same
32227780767

push

github

web-flow
Use any in generated code, apply go fix (#23)

* Apply go fix, regenerate the committed files

go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the
interface{} parameter of a test helper into any. The generated Scan keeps
interface{}: the enum type has to be lowercase, so a package generating for
type any shadows the alias and the generated assertions stop compiling.

The committed generated files are regenerated. That brings the examples up to
date with the case-insensitive parsing added to the template earlier, and
leaves the integration test data byte for byte what the generator produces, so
running the tests no longer leaves a modified file behind.

One test asserted that the generated code contains "value int", which only
ever matched the interface{} in Scan. The enum in that test is uint8 based, so
the assertion now names the field type it has.

* Limit the permissions of the workflow token on the job

The workflow already granted contents: read at the top level, the job did not
say anything of its own. Code scanning reports a job that does not limit the
token, so the job states the same permission explicitly.

1 of 1 new or added line in 1 file covered. (100.0%)

784 of 784 relevant lines covered (100.0%)

396.15 hits per line

Relevant lines Covered
Build:
Build:
784 RELEVANT LINES 784 COVERED LINES
396.15 HITS PER LINE
Source Files on master
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32227780767 master Use any in generated code, apply go fix (#23) * Apply go fix, regenerate the committed files go fix rewrites a HasPrefix and TrimPrefix pair into strings.CutPrefix, and the interface{} parameter of a test helper into any. The generated Scan keep... push 19 Aug 2026 07:26AM UTC web-flow github
100.0
32207556607 master Give min and max the kind of their untyped arguments, cover the evaluator (#25) max(5, 4.0) has an untyped float type even though the integer wins, so max(5, 4.0) / 2 * 10 is 25 and not 20. A right shift count is bounded by a constant instead of ... push 19 Aug 2026 02:11AM UTC web-flow github
100.0
32206544835 master Update dependencies (#22) testify 1.11.1 to 1.12.0, modernc.org/sqlite 1.53.0 to 1.56.0, golang.org/x/text 0.38.0 to 0.41.0 and the transitive modules, in the root module and in the examples one. The module list the runtime integration test write... push 19 Aug 2026 01:54AM UTC web-flow github
92.1
32206535618 master Raise golangci-lint to 2.12.2, match all refs on push (#21) The pinned linter was two releases behind, the repository is clean under the current one. The push trigger listed branches and tags with no value, which github reads as match-all but act... push 19 Aug 2026 01:54AM UTC web-flow github
92.1
32206331736 master Evaluate enum constants with go/constant (#24) * Evaluate enum constants with go/constant Previously the generator understood only iota, plain literals and a binary expression with one of + - * / around iota. Anything else silently produced 0: s... push 19 Aug 2026 01:51AM UTC web-flow github
92.1
28463682875 master Merge pull request #20 from go-pkgz/deps/update-latest Update dependencies and resolve mongo-driver advisory push 30 Jun 2026 05:33PM UTC web-flow github
99.27
23131158800 master Merge pull request #19 from go-pkgz/ci/workflow-hardening ci: harden workflows, upgrade actions, fix caching push 16 Mar 2026 06:39AM UTC web-flow github
99.26
22553822730 master fix prealloc lint issue in parseDocComment push 01 Mar 2026 10:06PM UTC umputun github
99.26
19955157628 master docs: add note about not modifying exported enum slices document that StatusValues and StatusNames are exported slices that should not be modified as this would affect all code using the enum. push 05 Dec 2025 06:51AM UTC umputun github
99.24
19789824344 master add alias support for enum parsing (#17) allows enum constants to have comment annotations like // enum:alias=rw,read-write that enable parsing multiple string representations for the same enum value. - add parseAliasComment() to extract aliases... push 29 Nov 2025 09:58PM UTC web-flow github
99.24
See All Builds (96)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc