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

Teamwork / utils
77%

Build:
DEFAULT BRANCH: master
Repo Added 26 Apr 2023 10:15AM UTC
Token 02wW7KhwMeA1UwF1mRkaUogUEa88dn7hy regen
Build 114 Last
Files 27
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: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • compatibitity
  • dep
  • enhancement/default
  • enhancement/generic-slice-extend
  • enhancement/sliceutil-toany
  • enhancement/syncutil-stuff
  • feat-ceil-plus
  • fix-generics
  • fix/goutil-windows-paths
  • fix/predeclared-types
  • generic-map-and-reduce
  • goutil-generics
  • httpx-exp-backoff
  • httpx-exponential-backoff
  • join-with
  • maputil-getvalue
  • master
  • refs/tags/v2.0.0
  • refs/tags/v2.0.1
  • refs/tags/v2.0.2
  • refs/tags/v2.1.0
  • refs/tags/v2.2.0
  • refs/tags/v2.2.1
  • refs/tags/v2.2.2
  • refs/tags/v2.2.3
  • refs/tags/v2.2.4
  • refs/tags/v2.2.5
  • refs/tags/v2.2.6
  • refs/tags/v2.3.0
  • refs/tags/v2.3.1
  • refs/tags/v2.3.2
  • valuesfunc

04 Sep 2026 04:04PM UTC coverage: 76.868% (+0.2%) from 76.703%
33893116752

push

github

web-flow
goutil: handle Windows paths in ResolvePackage and ResolveImport (#91)

* goutil: handle Windows paths in ResolvePackage and ResolveImport

Two path helpers assumed Unix conventions, so both misbehave on a Windows
checkout.

ResolvePackage switched on path[0] and only treated a leading '/' as a
directory. A Windows absolute path starts with a drive letter, so it fell
through to build.Import and was resolved as though it were an import path,
which always fails.

ResolveImport's same-package fallback derived the current package name with
path.Base(path.Dir(file)). The path package is slash-only, so for
C:\src\pkg\file.go it evaluates to "." and the fallback never fires,
leaving same-package type references unresolvable.

Both are fixed with helpers that accept either convention, so they are
unit-testable on any host rather than only on Windows. No behaviour change
for Unix paths.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* httputilx: serve TestFetch's fixtures locally instead of httpbin.org

TestFetch drove its status-code cases off httpbin.org, which returns 503
often enough to fail unrelated builds — it failed on this branch while
passing on a re-run of the same commit.

An httptest server now serves the 400/500/418 responses, and the
connection-failure case dials a closed local port rather than relying on a
domain never resolving, which a wildcard DNS resolver can defeat.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

14 of 16 new or added lines in 1 file covered. (87.5%)

1296 of 1686 relevant lines covered (76.87%)

35.2 hits per line

Relevant lines Covered
Build:
Build:
1686 RELEVANT LINES 1296 COVERED LINES
35.2 HITS PER LINE
Source Files on master
  • Tree
  • List 27
  • 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
33893116752 master goutil: handle Windows paths in ResolvePackage and ResolveImport (#91) * goutil: handle Windows paths in ResolvePackage and ResolveImport Two path helpers assumed Unix conventions, so both misbehave on a Windows checkout. ResolvePackage switche... push 04 Sep 2026 04:05PM UTC web-flow github
76.87
31686645085 fix/goutil-windows-paths httputilx: serve TestFetch's fixtures locally instead of httpbin.org TestFetch drove its status-code cases off httpbin.org, which returns 503 often enough to fail unrelated builds — it failed on this branch while passing on a re-run of the same c... Pull #91 13 Aug 2026 09:27AM UTC shane-tw github
76.87
31685192146 fix/goutil-windows-paths goutil: handle Windows paths in ResolvePackage and ResolveImport Two path helpers assumed Unix conventions, so both misbehave on a Windows checkout. ResolvePackage switched on path[0] and only treated a leading '/' as a directory. A Windows abso... Pull #91 13 Aug 2026 09:09AM UTC shane-tw github
76.87
25558262804 maputil-getvalue SetValue Pull #90 08 May 2026 01:29PM UTC cesartw github
77.27
25555334819 maputil-getvalue MapUtil: GetValue Add simple way to get a value from a map[string]any using key path Pull #90 08 May 2026 12:23PM UTC cesartw github
77.05
25552228361 maputil-getvalue MapUtil: GetValue Add simple way to get a value from a map[string]any using key path Pull #90 08 May 2026 11:08AM UTC cesartw github
77.05
25552211000 maputil-getvalue MapUtil: GetValue Add simple way to get a value from a map[string]any using key path push 08 May 2026 11:07AM UTC cesartw github
77.05
25552185092 maputil-getvalue MapUtil: GetValue Add simple way to get a value from a map[string]any using key path push 08 May 2026 11:06AM UTC cesartw github
77.05
25507740295 maputil-getvalue MapUtil: GetValue push 07 May 2026 04:11PM UTC cesartw github
77.05
20778625201 refs/tags/v2.3.2 Merge pull request #89 from Teamwork/httpx-exp-backoff Fix request body handling in DoExponentialBackoff push 07 Jan 2026 10:37AM UTC web-flow github
76.7
See All Builds (95)

Badge your Repo: utils

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • 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