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

JeremyLoy / config
97%

Build:
DEFAULT BRANCH: master
Repo Added 03 Apr 2019 08:28PM UTC
Files 4
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
  • ci/modernize-workflows
  • errorHandling
  • feat/generic-load
  • feat/sources
  • feat/text-unmarshaler
  • feat/typed-errors
  • fix/decode-bugs
  • flags
  • github-actions-test
  • modernize/go1.26
  • setter-type
  • v1.3.0

12 Oct 2026 02:03PM UTC coverage: 97.253% (+0.1%) from 97.143%
38260157371

push

github

web-flow
feat: support encoding.TextUnmarshaler fields (#18)

* feat: support encoding.TextUnmarshaler fields

Any field whose pointer implements encoding.TextUnmarshaler is parsed with
UnmarshalText, as a single value. This adds time.Time, netip.Addr,
netip.Prefix, net.IP, slog.Level, big.Int and user-defined types without
special cases, including slices of them.

- Such struct types (time.Time, netip.Addr) are no longer descended into
  as sub-configs.
- Such slice types (net.IP is a []byte) are no longer split on spaces.
- UnmarshalText errors are reported as ErrInvalidValue because they may
  contain the configured value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NUxivLjodSESTkzRtdQ4CP

* chore: require Go 1.27 and modernize (#16)

* chore: require Go 1.26 and modernize

Go supports the two most recent releases (1.26 and 1.27), so raise the
go directive from 1.16 to 1.26.

- go fix: interface{} -> any, reflect.Ptr -> reflect.Pointer, maps.Copy,
  range-over-int, drop per-iteration `tt := tt` copies (1.22 semantics)
- strings.Cut in stringsToMap (resolves the 1.18 TODO)
- slices.Sort instead of sort.Strings
- reflect.TypeFor for the time.Duration and *url.URL checks instead of
  comparing PkgPath/Name strings
- reflect.Value.Fields iterator and StructField.IsExported in mapKeysToFields
- new(expr) replaces the func() interface{} { v := x; return &v }() test helpers
- t.Setenv / t.TempDir in Test_Api, which no longer clears the whole
  environment for later tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NUxivLjodSESTkzRtdQ4CP

* chore: require Go 1.27

Raise the go directive to 1.27.0 so generic methods (Go 1.27) can be used.

CI: replace the oldstable/stable matrix with "minimum" (the version in
go.mod, via go-version-file) and "stable". With GOTOOLCHAIN=auto an
oldstable 1.26 job would silently download and test 1.27.0 instead, s... (continued)

9 of 9 new or added lines in 2 files covered. (100.0%)

177 of 182 relevant lines covered (97.25%)

36.31 hits per line

Relevant lines Covered
Build:
Build:
182 RELEVANT LINES 177 COVERED LINES
36.31 HITS PER LINE
Source Files on master
  • Tree
  • List 4
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
38260157371 master feat: support encoding.TextUnmarshaler fields (#18) * feat: support encoding.TextUnmarshaler fields Any field whose pointer implements encoding.TextUnmarshaler is parsed with UnmarshalText, as a single value. This adds time.Time, netip.Addr, net... push 12 Oct 2026 02:04PM UTC web-flow github
97.25
38209625090 master feat: return a typed *config.Error with per-field causes (#17) * feat: return a typed *config.Error with per-field causes To and Sub now return *config.Error, which lists a *FieldError per failed field or source, sorted by key. Error() is unchan... push 12 Oct 2026 05:50AM UTC web-flow github
97.14
38209053431 master chore: require Go 1.27 and modernize (#16) * chore: require Go 1.26 and modernize Go supports the two most recent releases (1.26 and 1.27), so raise the go directive from 1.16 to 1.26. - go fix: interface{} -> any, reflect.Ptr -> reflect.Pointe... push 12 Oct 2026 05:42AM UTC web-flow github
97.42
38208037215 master Merge pull request #15 from JeremyLoy/fix/decode-bugs fix: crashes on pointer/unexported fields, slice appends, error accumulation push 12 Oct 2026 05:28AM UTC web-flow github
97.55
38207533784 master ci: update workflows to supported actions and tooling (#14) * ci: update workflows to supported actions and tooling - actions/checkout@v4, actions/setup-go@v5, codeql-action@v3 (v1/v2 are retired) - test against oldstable and stable Go instead o... push 12 Oct 2026 05:21AM UTC web-flow github
96.05
1477424585 master using mod-aware go install instead of a tools mod file push 18 Nov 2021 04:47PM UTC Jeremy Loy github
95.6
1442459010 master Merge remote-tracking branch 'origin/master' push 10 Nov 2021 03:12AM UTC Jeremy Loy github
97.01
1440490449 master Create codeql-analysis.yml push 09 Nov 2021 04:53PM UTC GitHub github
97.02
1440475947 master refactor internal implementation of decode break logic into two distinct sections for maintainability: * building a map of keys -> pointers to struct fields * for each config value, set the matching struct field push 09 Nov 2021 04:48PM UTC Jeremy Loy github
97.02
1440329612 master fixed comment typos correct the input validation test for non-pointer non-struct push 09 Nov 2021 04:10PM UTC Jeremy Loy github
96.89
See All Builds (99)
  • 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