An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/searking/golang/tools/cmd/go-enum

go-enum is a tool to automate the creation of methods that satisfy such interfaces: Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing 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. go-enum works best with constants that are consecutive values such as created using iota, but creates good code regardless. In the future it might also provide custom support for constant sets that are bit patterns. For example, given this snippet, running this command in the same directory will create the file pill_string.go, in package painkiller, containing a definition of interfaces mentioned. That method will translate the value of a Pill constant to the string representation of the respective constant name, so that the call fmt.Print(painkiller.Aspirin) will print the string "Aspirin". Typically this process would be run using go generate, like this: If multiple constants have the same value, the lexically first matching name will be used (in the example, Acetaminophen will print as "Paracetamol"). With no arguments, it processes the package in the current directory. Otherwise, the arguments must name 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 output file is t_string.go, where t is the lower-cased name of the first type listed. It can be overridden with the -output flag. The -linecomment flag tells stringer to generate the text of any line comment, trimmed of leading spaces, instead of the constant name. For instance, if the constants above had a Pill prefix, one could write to suppress it in the output.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/searking/golang/tools/cmd/go-enum
Keywords: connection-mux , generic-template , go , gogenerate , golang , signal
License: MIT,MIT
Latest release: 9 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: about 11 hours ago

Top 5.2% on proxy.golang.org
github.com/searKing/golang/third_party/github.com/grpc-ecosystem/go-grpc-middleware v1.2.120
Useful libs or tools for Golang
10 versions - Latest release: 9 months ago - 3 dependent packages - 1 dependent repositories - 48 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/searking/golang/third_party/github.com/urfave/negroni v1.2.120
Useful libs or tools for Golang
9 versions - Latest release: 9 months ago - 48 stars on GitHub
Top 5.2% on proxy.golang.org
github.com/searKing/golang/third_party/github.com/open-telemetry/opentelemetry-go-contrib/instrumentation/otlpsql v1.2.120
Useful libs or tools for Golang
14 versions - Latest release: 9 months ago - 3 dependent packages - 1 dependent repositories - 48 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/searking/golang/tools/go-import/testdata/cgo v1.2.113
various libs or tools for Golang
3 versions - Latest release: over 1 year ago - 75 stars on GitHub
Top 10.0% on proxy.golang.org
github.com/searking/golang/tools/cmd/go-import/testdata/cgo v1.2.113
various libs or tools for Golang
3 versions - Latest release: over 1 year ago - 73 stars on GitHub
Top 6.8% on proxy.golang.org
github.com/searKing/golang/tools/go-import/testdata/cgo v1.2.113
various libs or tools for Golang
3 versions - Latest release: over 1 year ago - 91 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/searking/golang/pkg v0.0.4
Useful libs or tools for Golang
4 versions - Latest release: over 2 years ago - 48 stars on GitHub
Top 5.9% on proxy.golang.org
github.com/searking/golang/tools/common v0.0.6
Useful libs or tools for Golang
6 versions - Latest release: over 2 years ago - 48 stars on GitHub
Top 6.0% on proxy.golang.org
github.com/searKing/golang/thirdparty/github.com/sirupsen/logrus v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang
1 version - Latest release: about 5 years ago - 48 stars on GitHub
Top 6.0% on proxy.golang.org
github.com/searKing/golang/thirdparty/github.com/golang/protobuf v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang
1 version - Latest release: about 5 years ago - 48 stars on GitHub
Top 5.9% on proxy.golang.org
github.com/searKing/golang/thirdparty/google.golang.org/grpc v0.0.0-20200409160254-cf28ba78ef68
Useful libs or tools for Golang
1 version - Latest release: about 5 years ago - 48 stars on GitHub