gitlab.com/evatix-go/core@v1.3.55/converters/PointerStringsToStrings.go (about) 1 package converters 2 3 // PointerStringsToStrings will give empty or converted results array (not nil) 4 func PointerStringsToStrings(pointerStringOfArray *[]*string) *[]string { 5 if pointerStringOfArray == nil || *pointerStringOfArray == nil { 6 var emptyResult []string 7 8 return &emptyResult 9 } 10 11 newArray := make([]string, len(*pointerStringOfArray)) 12 13 for i, value := range *pointerStringOfArray { 14 newArray[i] = *value 15 } 16 17 return &newArray 18 }