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

gookit / validate
89%

Build:
DEFAULT BRANCH: master
Repo Added 23 Aug 2018 06:40AM UTC
Files 31
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
  • No branch selected
  • 1.1.x
  • almas-297
  • copilot/fix-validate-private-fields-issue
  • dependabot/add-v2-config-file
  • dependabot/github_actions/WillAbides/setup-go-faster-1.10.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.10.1
  • dependabot/github_actions/WillAbides/setup-go-faster-1.11.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.12.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.13.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.14.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.8.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.9.0
  • dependabot/github_actions/WillAbides/setup-go-faster-1.9.1
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/github/codeql-action-3
  • dependabot/github_actions/github/codeql-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-5
  • dependabot/github_actions/golangci/golangci-lint-action-6
  • dependabot/github_actions/golangci/golangci-lint-action-7
  • dependabot/github_actions/golangci/golangci-lint-action-8
  • dependabot/github_actions/golangci/golangci-lint-action-9
  • dependabot/github_actions/softprops/action-gh-release-2
  • dependabot/github_actions/softprops/action-gh-release-3
  • dependabot/go_modules/github.com/gookit/filter-1.1.1
  • dependabot/go_modules/github.com/gookit/filter-1.1.3
  • dependabot/go_modules/github.com/gookit/filter-1.2.2
  • dependabot/go_modules/github.com/gookit/filter-1.2.3
  • dependabot/go_modules/github.com/gookit/goutil-0.3.1
  • dependabot/go_modules/github.com/gookit/goutil-0.3.10
  • dependabot/go_modules/github.com/gookit/goutil-0.3.12
  • dependabot/go_modules/github.com/gookit/goutil-0.3.13
  • dependabot/go_modules/github.com/gookit/goutil-0.3.14
  • dependabot/go_modules/github.com/gookit/goutil-0.3.2
  • dependabot/go_modules/github.com/gookit/goutil-0.3.5
  • dependabot/go_modules/github.com/gookit/goutil-0.3.6
  • dependabot/go_modules/github.com/gookit/goutil-0.3.7
  • dependabot/go_modules/github.com/gookit/goutil-0.3.8
  • dependabot/go_modules/github.com/gookit/goutil-0.3.9
  • dependabot/go_modules/github.com/gookit/goutil-0.4.0
  • dependabot/go_modules/github.com/gookit/goutil-0.4.1
  • dependabot/go_modules/github.com/gookit/goutil-0.4.2
  • dependabot/go_modules/github.com/gookit/goutil-0.4.4
  • dependabot/go_modules/github.com/gookit/goutil-0.4.5
  • dependabot/go_modules/github.com/gookit/goutil-0.4.6
  • dependabot/go_modules/github.com/gookit/goutil-0.5.0
  • dependabot/go_modules/github.com/gookit/goutil-0.5.1
  • dependabot/go_modules/github.com/gookit/goutil-0.5.15
  • dependabot/go_modules/github.com/gookit/goutil-0.5.2
  • dependabot/go_modules/github.com/gookit/goutil-0.5.4
  • dependabot/go_modules/github.com/gookit/goutil-0.5.5
  • dependabot/go_modules/github.com/gookit/goutil-0.5.6
  • dependabot/go_modules/github.com/gookit/goutil-0.5.7
  • dependabot/go_modules/github.com/gookit/goutil-0.5.8
  • dependabot/go_modules/github.com/gookit/goutil-0.5.9
  • dependabot/go_modules/github.com/gookit/goutil-0.6.10
  • dependabot/go_modules/github.com/gookit/goutil-0.6.13
  • dependabot/go_modules/github.com/gookit/goutil-0.6.14
  • dependabot/go_modules/github.com/gookit/goutil-0.6.18
  • dependabot/go_modules/github.com/gookit/goutil-0.6.9
  • dependabot/go_modules/github.com/gookit/goutil-0.7.0
  • dependabot/go_modules/github.com/gookit/goutil-0.7.1
  • dependabot/go_modules/github.com/gookit/goutil-0.7.4
  • dependabot/go_modules/github.com/gookit/goutil-0.7.5
  • dependabot/go_modules/github.com/gookit/goutil-0.7.6
  • dependabot/go_modules/github.com/stretchr/testify-1.6.1
  • dependabot/go_modules/github.com/stretchr/testify-1.7.0
  • dependabot/go_modules/github.com/stretchr/testify-1.7.1
  • dependabot/go_modules/github.com/stretchr/testify-1.7.2
  • dependabot/go_modules/github.com/stretchr/testify-1.7.3
  • dependabot/go_modules/github.com/stretchr/testify-1.7.4
  • dependabot/go_modules/github.com/stretchr/testify-1.7.5
  • dependabot/go_modules/github.com/stretchr/testify-1.8.0
  • dependabot/go_modules/github.com/stretchr/testify-1.8.1
  • dependabot/go_modules/github.com/stretchr/testify-1.8.2
  • dependabot/go_modules/github.com/stretchr/testify-1.8.3
  • dependabot/go_modules/github.com/stretchr/testify-1.8.4
  • dev-tpy
  • fix-272
  • fix-284
  • fix-301
  • fix-302
  • fix/required-if-pointer-334
  • master
  • refs/tags/v1.2.10
  • refs/tags/v1.2.11
  • refs/tags/v1.2.3
  • refs/tags/v1.2.4
  • refs/tags/v1.2.5
  • refs/tags/v1.2.6
  • refs/tags/v1.2.7
  • refs/tags/v1.2.8
  • refs/tags/v1.2.9
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1
  • refs/tags/v1.3.2
  • refs/tags/v1.4.0
  • refs/tags/v1.4.1
  • refs/tags/v1.4.2
  • refs/tags/v1.4.3
  • refs/tags/v1.4.4
  • refs/tags/v1.4.5
  • refs/tags/v1.4.6
  • refs/tags/v1.5.0
  • refs/tags/v1.5.1
  • refs/tags/v1.5.2
  • refs/tags/v1.5.3
  • refs/tags/v1.5.4
  • refs/tags/v1.5.5
  • refs/tags/v1.5.6
  • refs/tags/v1.5.7
  • refs/tags/v1.6.0
  • refs/tags/v2.0.0
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.5

09 Jun 2026 02:42PM UTC coverage: 89.043% (+0.02%) from 89.024%
27276497239

push

github

inhere
docs: 同步 struct 源 Validate/ValidateErr 自动免收集后的分配数字

struct 源只读校验入口(Validate/ValidateErr/ValidateE)默认走 skipCollect 快路径后,
`Struct(&u).Validate()` flat-valid 实测从 12 → 7 allocs(~1150 → ~769 B/op)。

- docs/diff-with-go-playground.md §4 性能表更新该行实测新值,并注明 struct 源只读
  入口默认自动跳过 safeData 收集、要 safeData/绑定用 Check/ValidateR;§5/§6 一并同步。
- docs/benchmark-v1-to-v2.md「RV-native 优化后」节补充 struct Validate/ValidateErr
  现也自动免收集(分配下降),并更新表中数字。
- Check 仍 6、CheckErr 仍 0,数字均为本机实测(i7-14700KF, go1.25.10)。

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

4096 of 4600 relevant lines covered (89.04%)

6.15 hits per line

Relevant lines Covered
Build:
Build:
4600 RELEVANT LINES 4096 COVERED LINES
6.15 HITS PER LINE
Source Files on master
  • Tree
  • List 31
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27276497239 master docs: 同步 struct 源 Validate/ValidateErr 自动免收集后的分配数字 struct 源只读校验入口(Validate/ValidateErr/ValidateE)默认走 skipCollect 快路径后, `Struct(&u).Validate()` flat-valid 实测从 12 → 7 allocs(~1150 → ~769 B/op)。 - docs/diff-with-go-playground.md §4 性能表更新该行实测新值,并注明 ... push 10 Jun 2026 12:33PM UTC inhere github
89.04
27203075083 master docs(readme): CheckErr struct-valid 3→0 allocs(RV-native 端到端去装箱) README / README.zh-CN 的 CheckErr 分配数从过时的 3 更正为 0, 与 RV-native 重构后实测一致(详见 docs/perf/rv-native-validators-rfc.md)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> push 09 Jun 2026 11:29AM UTC inhere github
89.02
27113711952 master chore: move some docs and update some test push 08 Jun 2026 03:08AM UTC inhere github
92.97
27090789080 master docs(perf): 记录 S3.1 rules 切片复用 + Check allocs 拆解 (7→6) §5.4 新增 S3.1 结论与 memprofile 拆解(7 allocs 来源:装箱×3/safeData×2/ ValidResult 壳×1/rules make×1);§5 路线图加 S3.1 行;§9 交接累计更新为 Check 6 allocs,并标注剩余 6 = 2 必需输出 + 1 壳 + 3 装箱(S4/T3 只攻装箱)。 Co-Authored-By: ... push 07 Jun 2026 11:08AM UTC inhere github
92.9
27080747878 master docs(perf): 记录 S3 StructData 池化结论与基准 (Check 10→7 allocs) 计划文档:S3 标记 ✅,补 §5.3 实施结论 + 基准表(Check 7 allocs/472 B)、 §5 路线图、§8/§9 交接(下一步 S4=T3 去装箱,剩余 7 allocs 来源)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> push 07 Jun 2026 02:48AM UTC inhere github
92.93
27080509030 master docs(result): S2 基准/示例/文档同步 + Check 基准 (S2-P1c) - _examples/bench-vs-goplayground:新增 BenchmarkGookitCheckValid(池化无状态 入口),对标 playground 复用单实例。实测 Check 12→10 allocs / 1059→848 B。 - _examples/httpdemo、httpdemo2:改走 v.ValidateR() + ValidResult(原 v.S... push 07 Jun 2026 02:35AM UTC inhere github
92.89
27053946427 master docs(perf): Step 2 懒分配标注已实施并补改前/改后实测 标注 T4/T5(懒分配)/T6 已实施,新增 Step 2 专项小节,记录写入点覆盖、 ResetResult/resetForReuse 兼容处理与 Flat/Nested 改前/改后 allocs/ns 实测。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> push 06 Jun 2026 05:36AM UTC inhere github
92.82
27051098806 refs/tags/v2.0.0 docs(issues): 核查文档将 #257 挪入已核查(feat 已实现 isActiveURL) §2 把 #257 从"未处理特性"挪到已核查表,结论 feat 已实现 isActiveURL; 更新已核查计数 19→20、新增 feature 3→4,顶部状态行同步,未处理列表 删除 #257(剩 2 个纯特性/文档类)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> push 06 Jun 2026 03:17AM UTC inhere github
94.81
27049939825 master docs(issues): 核查文档将 #257 挪入已核查(feat 已实现 isActiveURL) §2 把 #257 从"未处理特性"挪到已核查表,结论 feat 已实现 isActiveURL; 更新已核查计数 19→20、新增 feature 3→4,顶部状态行同步,未处理列表 删除 #257(剩 2 个纯特性/文档类)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> push 06 Jun 2026 02:22AM UTC inhere github
94.81
27049399280 master docs(issues): #292 rule_one_of 标记已实施并更新核查文档 - 设计稿头部加 "✅ 已实施" 状态行, 补"实施记录"小节(方法签名 2 入参、 未知名 panic、init() 注册避初始化环 三处与设计稿片段的差异)。 - 核查文档 #292 从"未处理"挪入已核查表(feat 已实现 phase1), 已核查 18 -> 19, 顶部状态行同步, 未处理列表删 #292。 Co-Authored-By: Claude Opus 4.8 (1M ... push 06 Jun 2026 01:56AM UTC inhere github
94.83
See All Builds (610)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc