p4ssw0rd 使用密码强度验证 原料药 确保您阅读并遵守他们的 用法: package main import ( "github.com/chanced/p4ssw0rd" ) func main () { ctx := context . Background () pw , err := p4ssw0rd . New (p4ssw0rd. Config { UserAgent : "your site" , MinPasswordLength : 6 , // defaults to 6 BreachLimit : 10 , // defaults to 10 MaxPwnedRequestAttempts : 3