How to add variable to string variable in golang May 20, 2023 by Tarik Why not use fmt.Sprintf? data := 14 response := fmt.Sprintf("Variable string %d content", data)