Function call can be replaced with helper function CRT-A0010
Anti-pattern
Major
1 occurrence in this check
use strings.ReplaceAll method in strings.Replace(context, " ", "+", -1)
19const apiEndpoint = "https://api.datamuse.com/words?ml=%s&max=%d"
20
21var consultService = func(context string, max int, w *[]WordInfo) {
22	replaceContext := strings.Replace(context, " ", "+", -1)23	apiURL := fmt.Sprintf(apiEndpoint, replaceContext, max)
24
25	resData, err := http.Get(apiURL)