Skip to content
Sections
>> Trisquel >> Balíky >> etiona >> devel >> golang-github-spf13-cast-dev
etiona  ] [  nabia  ] [  aramo  ]
[ Zdroj: golang-github-spf13-cast  ]

Balík: golang-github-spf13-cast-dev (1.2.0-1)

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 (http://gohugo.io/), a website engine which uses YAML, TOML or JSON for meta data.

Ostatné balíky súvisiace s balíkom golang-github-spf13-cast-dev

  • závisí
  • odporúča
  • navrhuje

Stiahnuť golang-github-spf13-cast-dev

Stiahnuť pre všetky dostupné architektúry
Architektúra Veľkosť balíka Nainštalovaná veľkosť Súbory
all 9.1 kB74 kB [zoznam súborov]