Top 3.8% forks on proxy.golang.org
proxy.golang.org : github.com/searKing/golang/tools/cmd/go-validator
go-validator Generates Go code using a package as a generic template that implements validator. Given the StructName of a Struct type T go-validator will create a new self-contained Go source file and rewrite T's "db" tag of struct field The file is created in the same package and directory as the package that defines T. It has helpful defaults designed for use with go generate. For example, given this snippet, running this command in the same directory will create the file pill_validator.go, in package painkiller, containing a definition of helper for validator Typically this process would be run using go generate, like this: With no arguments, it processes the package in the current directory. Otherwise, the arguments must trimmedStructName a single directory holding a Go package or a set of Go source files that represent a single Go package. The -type flag accepts a comma-separated list of types so a single run can generate methods for multiple types. The default flagOutput file is t_string.go, where t is the lower-cased trimmedStructName of the first type listed. It can be overridden with the -flagOutput flag.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/sear%21king/golang/tools/cmd/go-validator
Keywords:
connection-mux
, generic-template
, go
, gogenerate
, golang
, signal
License: MIT
Latest release: 8 months ago
First release: almost 3 years ago
Namespace: github.com/searKing/golang/tools/cmd
Stars: 48 on GitHub
Forks: 10 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago
github.com/searKing/golang/third_party/google.golang.org/protobuf v1.2.120
Useful libs or tools for Golang13 versions - Latest release: 8 months ago - 14 dependent packages - 2 dependent repositories - 48 stars on GitHub
github.com/searKing/golang/third_party/github.com/open-telemetry/opentelemetry-go-contrib/instrumentation/otlpsql v1.2.120
Useful libs or tools for Golang14 versions - Latest release: 8 months ago - 3 dependent packages - 1 dependent repositories - 48 stars on GitHub
github.com/searKing/golang/third_party/github.com/grpc-ecosystem/go-grpc-middleware v1.2.120
Useful libs or tools for Golang10 versions - Latest release: 8 months ago - 3 dependent packages - 1 dependent repositories - 48 stars on GitHub
github.com/searking/golang/tools/cmd/go-import/testdata/cgo v1.2.113
various libs or tools for Golang3 versions - Latest release: over 1 year ago - 73 stars on GitHub
github.com/searKing/golang/tools/go-import/testdata/cgo v1.2.113
various libs or tools for Golang3 versions - Latest release: over 1 year ago - 91 stars on GitHub
github.com/searking/golang/tools/go-import/testdata/cgo v1.2.113
various libs or tools for Golang3 versions - Latest release: over 1 year ago - 75 stars on GitHub
github.com/searking/golang/pkg v0.0.4
Useful libs or tools for Golang4 versions - Latest release: over 2 years ago - 48 stars on GitHub
github.com/searking/golang/tools/common v0.0.6
Useful libs or tools for Golang6 versions - Latest release: over 2 years ago - 48 stars on GitHub
github.com/searKing/golang/thirdparty/github.com/sirupsen/logrus v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang1 version - Latest release: about 5 years ago - 48 stars on GitHub
github.com/searKing/golang/thirdparty/google.golang.org/grpc v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang1 version - Latest release: about 5 years ago - 48 stars on GitHub
github.com/searKing/golang/thirdparty/github.com/golang/protobuf v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang1 version - Latest release: about 5 years ago - 48 stars on GitHub