Safe and easy casting from one type to another in Go
Cast is a library to convert between different go types in a consistent and easy way. Cast provides simple functions to easily convert a number to a string, an interface into a bool, etc. Cast does this intelligently when an obvious conversion is possible. It doesn’t make any attempts to guess what you meant, for example you can only convert a string to an int when it is a string representation of an int such as “8”. Cast was developed for use in Hugo, a website engine which uses YAML, TOML or JSON for meta data. This package contains the source code needed for building packages that reference the following Go import paths: – github.com/spf13/cast
| Release | Stable | Testing |
|---|---|---|
| Fedora Rawhide | 1.7.0-1.fc41 | - |
| Fedora 43 | 1.7.0-1.fc41 | - |
| Fedora 42 | 1.7.0-1.fc41 | - |
| Fedora 41 | 1.7.0-1.fc41 | - |
| Fedora EPEL 10.2 | 1.7.0-1.el10_0 | - |
| Fedora EPEL 10.1 | 1.7.0-1.el10_0 | - |
| Fedora EPEL 10.0 | 1.7.0-1.el10_0 | - |
You can contact the maintainers of this package via email at
golang-github-spf13-cast dash maintainers at fedoraproject dot org.