A type coercion lib works with Sorbet's static type checker and type definitions; raises an error if the coercion fails. It provides a simple and generic way of coercing types in a sorbet-typed project. It is particularly useful when we're dealing with external API responses and controller parameters.
type coercion cast coerce sorbet type-coercionPackage set is a small wrapper around the official reflect package that facilitates loose type conversion, assignment into native Go types, and utilities to populate deeply nested Go structs. Read the godoc for more detailed explanations and examples but here are some enticing snippets.
reflection type-conversion typeconversion type-coercion
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.