gitlab.com/evatix-go/core@v1.3.55/issetter/toHashset.go (about)

     1  package issetter
     2  
     3  func toHashset(names ...string) map[string]bool {
     4  	if len(names) == 0 {
     5  		return map[string]bool{}
     6  	}
     7  
     8  	newMap := make(map[string]bool, len(names)+1)
     9  
    10  	for _, name := range names {
    11  		newMap[name] = true
    12  	}
    13  
    14  	return newMap
    15  }