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/vearutop/enumer

Enumer is a tool to automate the creation of methods that satisfy the jsonschema.Enum (https://pkg.go.dev/github.com/swaggest/jsonschema-go#Enum) interface. For example, given this snippet, running this command in the same directory will create the file pill_enum.go, in package painkiller, containing a definition of 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 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. This file originates from https://github.com/golang/tools/blob/master/cmd/stringer/stringer.go.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/vearutop/enumer
License: MIT
Latest release: over 3 years ago
First release: over 3 years ago
Namespace: github.com/vearutop
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago

    Loading...
    Readme
    Loading...