Ecosyste.ms: Packages

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

Top 0.2% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : golang.org/x/exp/typeparams

Package typeparams contains common utilities for writing tools that interact with generic Go code, as introduced with Go 1.18. Many of the types and functions in this package are proxies for the new APIs introduced in the standard library with Go 1.18. For example, the typeparams.Union type is an alias for go/types.Union, and the ForTypeSpec function returns the value of the go/ast.TypeSpec.TypeParams field. At Go versions older than 1.18 these helpers are implemented as stubs, allowing users of this package to write code that handles generic constructs inline, even if the Go version being used to compile does not support generics. Additionally, this package contains common utilities for working with the new generic constructs, to supplement the standard library APIs. Notably, the NormalTerms API computes a minimal representation of the structural restrictions on a type parameter. In the future, these supplemental APIs may be available in the standard library..

Registry - Source - Documentation - JSON
purl: pkg:golang/golang.org/x/exp/typeparams
License: BSD-3-Clause
Latest release: 4 months ago
First release: over 2 years ago
Namespace: golang.org/x/exp
Dependent packages: 1,445
Dependent repositories: 2,172
Docker dependents: 273
Docker downloads: 3,261,144,952
Last synced: 4 days ago

    Loading...
    Readme
    Loading...