gitlab.com/evatix-go/core@v1.3.55/converters/StringsPointersToStringBoolMap.go (about)

     1  package converters
     2  
     3  func StringsPointersToStringBoolMap(inputArray *[]*string) *map[string]bool {
     4  	length := len(*inputArray)
     5  	hashset := make(map[string]bool, length)
     6  
     7  	for _, s := range *inputArray {
     8  		sC := *s
     9  		hashset[sC] = true
    10  	}
    11  
    12  	return &hashset
    13  }