cast icon indicating copy to clipboard operation
cast copied to clipboard

Add ToStringMapStruct()

Open albttx opened this issue 7 years ago • 1 comments

Add the possibility to cast a slice into a hashset (map[string]struct{}).

The struct{} element worth 0 byte, and it's really useful for checking if a key is present. here an article about the empty struct.

This pull request is link with https://github.com/spf13/viper/pull/437 to add this feature for parsing slice.

albttx avatar Jan 11 '18 12:01 albttx

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 11 '18 12:01 CLAassistant