Safe and easy casting from one type to another in Go
21.86 KB
built 2026-10-29 11:34:30 GMT
Description
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
Dependencies
8 totalRequires5
- go-filesystem
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides3
- golang(github.com/spf13/cast) = 1.7.0-1.fc45
- golang-github-spf13-cast-devel = 1.7.0-1.fc45
- golang-ipath(github.com/spf13/cast) = 1.7.0-1.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
13
Files 1–13 of 13
Component of
buildroots that installed this RPMBuildroot ![]() |
Created | State |
|---|---|---|
| f45-build-49738-885 | 2026-10-29 12:10:05 | expired |
| f45-build-49683-884 | 2026-10-29 12:04:02 | expired |
| f45-build-49668-884 | 2026-10-29 12:01:54 | expired |
Buildroots 1–3 of 3

