Yeah this is Javascript and Go 

https://github.com/ali2210/WizDwarf/blob/master/visualize.html
https://github.com/ali2210/WizDwarf/blob/master/js/visual.js



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/03c51bac-34f5-4688-8b21-ee594a757ea7o%40googlegroups.com.

Reply via email to