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

gookit / color / 38853503967
99%

Build:
DEFAULT BRANCH: master
Ran 16 Oct 2026 05:00AM UTC
Jobs 8
Files 12
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

16 Oct 2026 05:00AM UTC coverage: 98.61%. Remained the same
38853503967

push

github

inhere
style(examples): 给 _examples 的 demo 文件加 //go:build ignore

_examples 是独立的 demo 模块(color_example), 每个文件各自定义 func main, 本意是用
`go run 文件.go` 单独跑, 所以 `go build ./...` 一直报 28 行 "main redeclared"。
给全部 18 个文件(_examples/*.go 13 个、ref/ 3 个、related/ 2 个)加 `//go:build ignore`:
现在 `go build ./...` 通过(该目录无包可构建), 显式文件依旧能跑(实测 `go run envcheck.go`
与 `go run ref/cmd_color1.go` 都 exit 0)。

- ref/cmd_color.go: 原来的 `//go:build windows` + `// +build windows` 换成 `//go:build ignore`
  —— 老写法 `//+build`(无空格)实际不生效, 所以它在 Linux 上也参与构建并与 cmd_color1.go
  撞 main; 该文件本来就只在 Windows 上有意义, 仍用 `go run ref/cmd_color.go` 运行;
- ref/idea.go 是没有 main 的共享 helper(package main), 不 ignore 的话该目录会变成
  “main 包没有 main 函数”, 因此一并 ignore(它并未被任何 demo 引用);
- related/ 的两个文件由 gofmt 规范化(注释缩进)。

副作用(如现状所限): 该模块内 `go vet ./...` / `go test ./...` 会返回 "matched no packages"
(exit 1) —— 这两个命令在本模块上原本也是报 redeclare 失败; 仓库 CI 只测根模块。

验证: gofmt -l 输出为空; `go build ./...` 通过; `go run envcheck.go`、`go run ref/cmd_color1.go`
exit 0。

1490 of 1511 relevant lines covered (98.61%)

8.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 38853503967.1 16 Oct 2026 05:00AM UTC 12
98.3
GitHub Action Run
2 Go-1.22 - 38853503967.2 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
3 Go-1.24 - 38853503967.3 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
4 Go-1.21 - 38853503967.4 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
5 Go-1.19 - 38853503967.5 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
6 Go-1.20 - 38853503967.6 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
7 Go-1.18 - 38853503967.7 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
8 Go-1.23 - 38853503967.8 16 Oct 2026 05:00AM UTC 12
98.54
GitHub Action Run
Source Files on build 38853503967
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9da825be on github
  • Prev Build on master (#38852271202)
  • Next Build on master (#39242644987)
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