Registry / utility / spf13-cast

spf13-cast

JSON →
library1.10.0gogounverified

Package cast provides safe and easy casting from one type to another in Go.

go get github.com/spf13/cast
INSTALL
IMPORT
SIG · SPF13-CAST
S
spf13-cast
utilitygov1.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cast
github.com/spf13/cast

Convert an integer to a string

package main import ( "fmt" "github.com/spf13/cast" ) func main() { s := cast.ToString(123) fmt.Println(s) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.10.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
spf13-cast — go get spf13-cast · libregistry