Top 1.2% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 9.8% forks on proxy.golang.org
proxy.golang.org : github.com/reiver/go-cast
Package cast provides tools for safely converting from one type to another, without information loss. For an example, let's look at converting to an int64. You can safely convert a uint8, uint16, uint32, plus an int, int8, int16, int32, int64, into an int64 without information loss. In other words, if `v` (in the following example code) is any of the types in the list just mentioned, then the following code would successfully return an `int64` of the same numeric value. In addition to these types built into Go (that were in the list), this package also supports converting custom types, as long as they implement a special method. For int64, the special method is: For example:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/reiver/go-cast
License: MIT
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/reiver
Dependent packages: 17
Dependent repositories: 12
Stars: 4 on GitHub
Forks: 3 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago