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

gookit / goutil / 40504890076
87%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 12:35PM UTC
Jobs 6
Files 225
Run time 1min
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

27 Oct 2026 12:34PM UTC coverage: 87.33% (+0.03%) from 87.305%
40504890076

push

github

inhere
feat(maputil): support the bracket index path in the get helpers

GetByPath, GetByPathKeys and GetFromAny only accepted the dot-index form
("top.arr.1"), so a path like "top.arr[1]" - which SetByPath already writes -
returned nothing.

- expand the trailing "[N]" indexes of a key segment before the walk, so
  "top.arr[1]", "top.matrix[0][1]" and "top.items[1].name" resolve. The
  top-level key is indexable too ("tags[0]"), as it already is on the set side.
- the literal key is matched first, so a key that really contains brackets
  (eg. "child[x]", "a[0]") keeps working as before. A negative index, an empty
  index and a bare "[0]" segment are kept as literal keys as well.
- the dot-index style ("top.arr.1") is unchanged.

Tests: top-level, nested and multi-index paths, out of range, negative and
empty indexes, the literal bracket keys, and the GetByPathKeys/GetFromAny
entries.

46 of 47 new or added lines in 1 file covered. (97.87%)

16149 of 18492 relevant lines covered (87.33%)

5.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
94.44
0.94% maputil/get.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 40504890076.1 27 Oct 2026 12:35PM UTC 225
84.02
GitHub Action Run
2 Go-1.23 - 40504890076.2 27 Oct 2026 12:35PM UTC 225
85.65
GitHub Action Run
3 Go-1.24 - 40504890076.3 27 Oct 2026 12:35PM UTC 225
84.88
GitHub Action Run
4 Go-1.25 - 40504890076.4 27 Oct 2026 12:35PM UTC 225
84.88
GitHub Action Run
5 Go-1.19 - 40504890076.5 27 Oct 2026 12:35PM UTC 220
86.69
GitHub Action Run
6 Go-1.21 - 40504890076.6 27 Oct 2026 12:35PM UTC 220
86.69
GitHub Action Run
Source Files on build 40504890076
  • Tree
  • List 225
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 79a3b284 on github
  • Prev Build on master (#40188095025)
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