In the following code, I want to put a variable id, like some format specifier %d. How do I do this for the following elasticsearch query with Golang?
str := `{
"query": {
"match": {
"id": 123
}
}
}`
s := []byte(str)
url := "http://localhost:9200/student/_delete_by_query"
_, err = helper.GoDelete(url, s)
if err != nil {
return err
}
return nil