Displaying 1 to 2 from 2 results

sorbet-coerce - A type coercion lib works with Sorbet's static type checker and type definitions

  •    Ruby

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.

set - Package set is a small wrapper around the official reflect package that facilitates loose type conversion and assignment into native Go types

  •    Go

Package 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.