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

Top 6.5% on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org
Top 6.4% forks on proxy.golang.org

proxy.golang.org : github.com/searKing/golang/tools/cmd/go-syncmap

go-syncmap Generates Go code using a package as a generic template for sync.Map. Given the name of a sync.Map type T , and the name of a type Key and Value go-syncmap will create a new self-contained Go source file implementing from Go version 1.9 onward from Go version 1.15 onward The file is created in the same package and directory as the package that defines T, Key and Value. 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_syncmap.go, in package painkiller, containing a definition of from Go version 1.9 onward from Go version 1.15 onward 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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/sear%21king/golang/tools/cmd/go-syncmap
Keywords: connection-mux , generic-template , go , gogenerate , golang , signal
License: MIT
Latest release: 7 months ago
First release: almost 3 years ago
Namespace: github.com/searKing/golang/tools/cmd
Dependent repositories: 1
Stars: 48 on GitHub
Forks: 10 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 4 days ago

    Loading...
    Readme
    Loading...