Go SSR上的每个请求都会附加响应

Go SSR上的每个请求都会附加响应,go,response,server-side-rendering,Go,Response,Server Side Rendering,我想和Golang一起做SSR。我可以看到我的所有响应都被附加到响应HTML中。我想显示特定于该请求的响应,而不是附加的整个列表。如何仅显示来自服务器的最后响应 这是我的经纪人 w.Header().Add("Content Type", "text/html") templates.ExecuteTemplate(w, "progress.html", nil) templates := template.New("temp

我想和Golang一起做SSR。我可以看到我的所有响应都被附加到响应HTML中。我想显示特定于该请求的响应,而不是附加的整个列表。如何仅显示来自服务器的最后响应

这是我的经纪人

w.Header().Add("Content Type", "text/html")
templates.ExecuteTemplate(w, "progress.html", nil)
templates := template.New("template")
templates.New("doc").Parse(doc)
templates.Lookup("doc").Execute(w, ulist)