Yes it is func Visualize(w http.ResponseWriter, r *http.Request){ temp := template.Must(template.ParseFiles("visualize.html")) if r.Method == "GET" { fmt.Println("Url:", r.URL.Path) fmt.Println("Method:" + r.Method) temp.Execute(w,LifeCode) } }
On Wednesday, July 15, 2020 at 3:14:51 PM UTC+5, Ali Hassan wrote: > > <div class="horzontialList" id="List"> > {{range .}} > {{if ne .Symbol " "}} > <span>{{.Symbol}}</span> > {{end}} > {{end}} > > > var div=document.getElementById('List'); > var point = div.getElementsByTagName('span'); > > console.log(point[0].innerHTML) > > > Actual Output: Empty string > Excepted Output: Y > How to resolve this > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/99f48dc9-65a9-43b6-9bcd-df0245d9da17o%40googlegroups.com.