gitlab.com/evatix-go/core@v1.3.55/coreimpl/enumimpl/stringsToHashset.go (about)

     1  package enumimpl
     2  
     3  func stringsToHashSet(slice []string) map[string]bool {
     4  	length := len(slice)
     5  	hashset := make(map[string]bool, length)
     6  
     7  	for _, s := range slice {
     8  		hashset[s] = true
     9  	}
    10  
    11  	return hashset
    12  }