[go-nuts] I have own issue my whole project follow relative schema ./db

2020-07-25 Thread Ali Hassan
I have own issue my whole project follow relative schema (./db) , but I 
want like this .
 import ( 
github.com/username/projecr-name,package-name).
How ???

-- 
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/ba05668e-f924-4b68-af9b-1482b1a6n%40googlegroups.com.


[go-nuts] my package not include in go modules

2020-07-24 Thread Ali Hassan
I want to import libraries in module file but modules add all other 
libraries except those packages which I had created, DB is one of them. How 
to import? 
Error , please help me 
to resolve 

-- 
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/66979dfc-a575-4001-ad48-902e9c8d3832o%40googlegroups.com.


[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
https://github.com/ali2210/WizDwarf/blob/master/visualize.html

On Wednesday, July 15, 2020 at 3:14:51 PM UTC+5, Ali Hassan wrote:
>
> 
> {{range .}}
>   {{if ne .Symbol " "}}
>{{.Symbol}}
>  {{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/d27eec42-be5c-461b-b400-95612518606bo%40googlegroups.com.


[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
yes it is https://github.com/ali2210/WizDwarf/blob/master/main.go [line: 
150-158]

On Wednesday, July 15, 2020 at 3:14:51 PM UTC+5, Ali Hassan wrote:
>
> 
> {{range .}}
>   {{if ne .Symbol " "}}
>{{.Symbol}}
>  {{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/4987a7dd-95a8-4354-b160-367bfcb22bbao%40googlegroups.com.


[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
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:
>
> 
> {{range .}}
>   {{if ne .Symbol " "}}
>{{.Symbol}}
>  {{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.


[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
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:
>
> 
> {{range .}}
>   {{if ne .Symbol " "}}
>{{.Symbol}}
>  {{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.


[go-nuts] Golang Templates

2020-07-15 Thread Ali Hassan


{{range .}}
  {{if ne .Symbol " "}}
   {{.Symbol}}
 {{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/ab0c8947-34f0-4f9a-8718-7fd2d5b4a50co%40googlegroups.com.


[go-nuts] Re: MediaStreamError

2020-05-23 Thread Ali Hassan
Thank you

On Friday, May 22, 2020 at 1:21:10 PM UTC+5, Ali Hassan wrote:
>
> I plug video streaming with my website but I got MediaStreamError . 
>
>
> How to resolve this error
> https://github.com/ali2210/WizDwarf/blob/master/js/webrtc-video.js
>

-- 
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/38c9142d-c306-4ed5-919b-d9756bc97622%40googlegroups.com.


[go-nuts] Re: opencv with my golang project

2020-05-22 Thread Ali Hassan
Thank you for support but i change my plan because this error resolve 
through npm which I had not using. I check stackflow

On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote:
>
> Opencv install [github.com/shrkwd/opencv-js]
> Os : Linux 18.04
>
>  // opencv 
> file
>// 
> video features
> // 
> utils file to start
>
> When I compile my project , everything fine but opencv can't start.
>
>

-- 
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/ef0ae65d-021e-4d0c-a420-83762ad713e2%40googlegroups.com.


[go-nuts] Re: opencv with my golang project

2020-05-22 Thread Ali Hassan
Thank you I have change my alternative because opencv not ready to 
integrate with golang.This is javascript error which I had checkout on 
stackoverflow

On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote:
>
> Opencv install [github.com/shrkwd/opencv-js]
> Os : Linux 18.04
>
>  // opencv 
> file
>// 
> video features
> // 
> utils file to start
>
> When I compile my project , everything fine but opencv can't start.
>
>

-- 
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/267898fc-b528-40d1-bd89-5a7cdd5022e1%40googlegroups.com.


[go-nuts] MediaStreamError

2020-05-22 Thread Ali Hassan
I plug video streaming with my website but I got MediaStreamError . 


How to resolve this error
https://github.com/ali2210/WizDwarf/blob/master/js/webrtc-video.js

-- 
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/c136db13-f11e-4786-9bbb-c00ed7917459%40googlegroups.com.


[go-nuts] OPENCV + gO

2020-05-21 Thread Ali Hassan
 *Loading module /opencv.js was blocked because of disallow MIME TYPE 
(TEXT/PLAIN) *ERROR:
>
> First  
>this is valid because my server handle these line 
> Then I add opencv file in /js folder . Next import cv from "/js/opencv.js";

but i have an error

javascript  , then html 
file 
 
 






-- 
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/23dbf03e-24fc-4743-9bba-94a2e5d507ac%40googlegroups.com.


[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Ali Hassan
sorry i type wrong git link


On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote:
>
> Opencv install [github.com/shrkwd/opencv-js]
> Os : Linux 18.04
>
>  // opencv 
> file
>// 
> video features
> // 
> utils file to start
>
> When I compile my project , everything fine but opencv can't start.
>
>

-- 
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/d2107bab-0e80-43ae-85b7-c5e506b1f6c2%40googlegroups.com.


[go-nuts] Re: opencv with my golang project

2020-05-21 Thread Ali Hassan
This is not 
https://github.com/shkrwnd/openCV-js

On Thursday, May 21, 2020 at 1:27:27 PM UTC+5, Ali Hassan wrote:
>
> Opencv install [github.com/shrkwd/opencv-js]
> Os : Linux 18.04
>
>  // opencv 
> file
>// 
> video features
> // 
> utils file to start
>
> When I compile my project , everything fine but opencv can't start.
>
>

-- 
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/88564e7c-3954-44b7-8f6f-3a4e457cd131%40googlegroups.com.


[go-nuts] opencv with my golang project

2020-05-21 Thread Ali Hassan
Opencv install [github.com/shrkwd/opencv-js]
Os : Linux 18.04

 // opencv 
file
   // 
video features
// 
utils file to start

When I compile my project , everything fine but opencv can't start.

-- 
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/17b25a32-4b47-4f8d-a2a5-6657eb8d87a8%40googlegroups.com.


[go-nuts] Re: How url use Html templates?

2020-05-15 Thread Ali Hassan
Thank you

On Thursday, May 14, 2020 at 9:05:29 PM UTC+5, Ali Hassan wrote:
>
>
> Html Templates
>{{if .Done}}
>  
>
>{{end}}
>
> My question is this   , possible that Url 
> have string value "/HelloQ/home/" which which show as url link option which 
> you can open if you click on that link
>

-- 
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/07b79bcc-003f-463a-92b5-04490a9c4af6%40googlegroups.com.


[go-nuts] Re: Why I fear Go

2020-05-14 Thread Ali Hassan
Take a chance , someday it you will get reward

On Saturday, May 9, 2020 at 10:57:23 PM UTC+5, shammah Zealsham Agwor wrote:
>
> I have been programming since 2016 but I have never really dived deep into 
> any language and haven't got a job with any . I decided to change all that 
> and focus with every soul in me on golang. But I have my fear as every go 
> job I have seen are looking for senior developers. And from what I noticed 
> in big corps and small ones alike ,people writing go there are senior who 
> wants to port existing large scale system to go . I'm afraid I'll never be 
> able to get an entry job with it and all my hard work will be a waste and 
> I'll have to put in such efforts again into another language . Should I 
> still go for it . I've been learning it for months now and I'm scared .

-- 
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/5113fb66-cab8-4fbc-840e-d4b6acac2775%40googlegroups.com.


[go-nuts] How url use Html templates?

2020-05-14 Thread Ali Hassan

Html Templates
   {{if .Done}}
 
   
   {{end}}

My question is this   , possible that Url 
have string value "/HelloQ/home/" which which show as url link option which 
you can open if you click on that link

-- 
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/8c585224-eb70-43f1-9a5f-b4f670a9be0a%40googlegroups.com.


[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-29 Thread Ali Hassan


[Unexcepted NonWhitespacing json data parse after line 1 to 28 ] 

You can checkout my repo
https://github.com/ali2210/HealthyTickets/blob/master/main.go



On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote:
>
> [image: Capture.JPG]
>
> Data : TYPE OF Json
>
>
>
> var member Member // struct where json 
> data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s",
> err)} 
> fmt.Printf("Data", data)
>
> err = json.NewDecoder(request.Body).Decode(); if err != nil {fmt.
> Printf("Error %s",err) // this is print "EOF"}
>
> unexpected non whitespaceing json parse data 1 to  colummn 28 
>
>
>
>

-- 
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/d25dfa3b-0c4f-4ea3-b2a7-f91b38b5eee9%40googlegroups.com.


[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan
https://play.golang.org/p/cRBdSyGcGfp
Demo Version 

On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote:
>
> [image: Capture.JPG]
>
> Data : TYPE OF Json
>
>
>
> var member Member // struct where json 
> data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s",
> err)} 
> fmt.Printf("Data", data)
>
> err = json.NewDecoder(request.Body).Decode(); if err != nil {fmt.
> Printf("Error %s",err) // this is print "EOF"}
>
> unexpected non whitespaceing json parse data 1 to  colummn 28 
>
>
>
>

-- 
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/1cedee73-bbe3-471a-a3ea-927735b85cbd%40googlegroups.com.


[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan
I try

On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote:
>
> [image: Capture.JPG]
>
> Data : TYPE OF Json
>
>
>
> var member Member // struct where json 
> data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s",
> err)} 
> fmt.Printf("Data", data)
>
> err = json.NewDecoder(request.Body).Decode(); if err != nil {fmt.
> Printf("Error %s",err) // this is print "EOF"}
>
> unexpected non whitespaceing json parse data 1 to  colummn 28 
>
>
>
>

-- 
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/6f4910f9-3005-4128-95e3-69573a6aef67%40googlegroups.com.


[go-nuts] Re: func before function

2020-04-28 Thread Ali Hassan
may be that's the way compiler understand where new function start 

On Monday, April 27, 2020 at 9:46:20 PM UTC+5, valen...@gmail.com wrote:
>
> Why is it necessary to write func in go before declaring a function; if in 
> C, when parsing a function, there is no such need?
> Why "func sum(a, b int) int {...}" can't be "sum(a, b int) int {...}"
>

-- 
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/d8781ced-a875-428b-8f5c-ddfd4f3a0984%40googlegroups.com.


[go-nuts] Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan


[image: Capture.JPG]

Data : TYPE OF Json



var member Member // struct where json 
data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s",err
)} 
fmt.Printf("Data", data)

err = json.NewDecoder(request.Body).Decode(); if err != nil {fmt.
Printf("Error %s",err) // this is print "EOF"}

unexpected non whitespaceing json parse data 1 to  colummn 28 



-- 
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/950a3753-88bf-4748-ab58-e59707914b67%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-15 Thread Ali Hassan
This is not possible because this project is very large 

On Tuesday, April 14, 2020 at 7:34:49 PM UTC+5, Brian Candler wrote:
>
> Can you make this as a full runnable example on play.golang.org ?
>
> What type is a "db.Visitor"?
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070.
>>
>
> It will show more than that.  Please show the complete error message. 
>

-- 
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/5960fc28-d309-4d06-9ea5-7d4ae85b8649%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-15 Thread Ali Hassan
I try and Thank you for help

On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var  visitor  db.Visitor 
> err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
> this error } println("data:", visitor.Id)
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
> Please help me
>
>

-- 
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/375aa887-ebda-4394-bc45-331e9fa529a8%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-15 Thread Ali Hassan
So i will try with printf statement, to checkout what's the error , i had 
...
Error : EOF

On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var  visitor  db.Visitor 
> err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
> this error } println("data:", visitor.Id)
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
> Please help me
>
>

-- 
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/ac63cb0b-b640-49cb-a833-ae698f2c7e19%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-14 Thread Ali Hassan
https://github.com/ali2210/HealthyTickets/

On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var  visitor  db.Visitor 
> err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
> this error } println("data:", visitor.Id)
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
> Please help me
>
>

-- 
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/2b4c9e66-8e5a-44cd-8d44-557bbcff6b45%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-14 Thread Ali Hassan
Ok I will try this

On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var  visitor  db.Visitor 
> err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
> this error } println("data:", visitor.Id)
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
> Please help me
>
>

-- 
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/68024f81-1c3d-4fe7-9f63-30c6b590cfd7%40googlegroups.com.


[go-nuts] Re: Json Decode Failed

2020-04-14 Thread Ali Hassan
db.Visitor struct + json which is defined in db package with Visitor 

On Tuesday, April 14, 2020 at 6:53:32 PM UTC+5, Ali Hassan wrote:
>
> dec :=json.NewDecoder(request.Body)//ok
> var  visitor  db.Visitor 
> err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
> this error } println("data:", visitor.Id)
>
> When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
> Please help me
>
>

-- 
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/3d736d4b-26e5-4d80-ba2d-db12c424e25c%40googlegroups.com.


[go-nuts] Json Decode Failed

2020-04-14 Thread Ali Hassan
dec :=json.NewDecoder(request.Body)//ok
var  visitor  db.Visitor 
err :=  dec.Decode();if err!= nil{ print("error", err) // throw 
this error } println("data:", visitor.Id)

When I compile my code it throw error like this 0xc54f40 , 0xc32070. 
Please help me

-- 
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/e724c659-e523-4ff5-b0df-ce0b4fd42773%40googlegroups.com.


[go-nuts] Re: Issue with go and mongodb

2020-04-08 Thread Ali Hassan
how to resolve dns problem

On Wednesday, April 8, 2020 at 7:56:42 PM UTC+5, Ali Hassan wrote:
>
> I want build connection with mongodb and go1.14 linux/amd
>  But it throw this 
>  error parsing uri : lookup abc-hwykp.mongonet 
> on 127.0.0.53:53: cannot unmarshal DNS message 
>
> *Mongoclient code :*
>
> [image: Capture.JPG]
>
> [image: Capture.JPG]
>
> Please help me 
>

-- 
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/079430fd-01cb-4273-9dab-0532ae9b210c%40googlegroups.com.


[go-nuts] Issue with go and mongodb

2020-04-08 Thread Ali Hassan
I want build connection with mongodb and go1.14 linux/amd
 But it throw this 
 error parsing uri : lookup abc-hwykp.mongonet 
on 127.0.0.53:53: cannot unmarshal DNS message 

*Mongoclient code :*

[image: Capture.JPG]

[image: Capture.JPG]

Please help me 

-- 
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/09bb1095-4c6d-4f4b-bb41-c5609cb3f79e%40googlegroups.com.


[go-nuts] MongoDB Connection Failed

2020-04-06 Thread Ali Hassan
clientOptions := options.Client().ApplyURI("mongodb://localhost:27017") // 
Connect to MongoDB client, err := mongo.Connect(context.TODO(), 
clientOptions) if err != nil { log.Fatal(err) } // Check the connection err 
= client.Ping(context.TODO(), nil) if err != nil { log.Fatal(err) } fmt.
Println("Connected to MongoDB!")


Error receive when i execute my program[image: Capture.JPG]

-- 
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/bfd30b79-343e-48cc-b853-1d42fe9cd825%40googlegroups.com.


[go-nuts] Re: Docker Server access Failed

2020-03-23 Thread Ali Hassan
I will try thank you 

On Sunday, March 22, 2020 at 6:28:07 PM UTC+5, Ali Hassan wrote:
>
> Please help me this is my repo where I'm working docker-golang . May be 
> some problem my server access failed on my browser
>
> https://github.com/ali2210/DockerTest
>

-- 
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/d2d82cce-61ee-4c4a-8afb-eb5e00a1452b%40googlegroups.com.


[go-nuts] Re: Issue with handler

2020-03-22 Thread Ali Hassan
Thank you I had resolve this... it's because of html file. File name 
conflict

On Friday, March 20, 2020 at 11:50:02 PM UTC+5, Ali Hassan wrote:
>
> I have two html files 
>index and login 
>  Index return status = 200
>  login return status = 400
>
> Code snipnet
>  
>
> [image: err2.JPG]
>
> [image: error0.JPG]
>
>
>

-- 
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/648c72f2-6380-438f-9f75-ab039fd793f7%40googlegroups.com.


[go-nuts] Re: Docker Server access Failed

2020-03-22 Thread Ali Hassan
Sir I create dockerfile go1.14.1-stretch 
then I will perform all necessary steps that are require.
   docker build  status success
   docker run     status success
 But when I had try to open my test website ON MY BROWSER  "unable to 
connect"
Please Help me 

On Sunday, March 22, 2020 at 6:28:07 PM UTC+5, Ali Hassan wrote:
>
> Please help me this is my repo where I'm working docker-golang . May be 
> some problem my server access failed on my brower
>
> https://github.com/ali2210/DockerTest
>

-- 
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/813056a6-d3ef-4447-b4f5-6e083c418c45%40googlegroups.com.


[go-nuts] Docker Server access Failed

2020-03-22 Thread Ali Hassan
Please help me this is my repo where I'm working docker-golang . May be 
some problem my server access failed on my brower

https://github.com/ali2210/DockerTest

-- 
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/5b66af80-3393-4507-83f8-2f5964a40344%40googlegroups.com.


[go-nuts] Issue with handler

2020-03-20 Thread Ali Hassan
I have two html files 
   index and login 
 Index return status = 200
 login return status = 400

Code snipnet
 

[image: err2.JPG]

[image: error0.JPG]


-- 
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/134f806f-4b20-498e-8a2b-84cab511760d%40googlegroups.com.


[go-nuts] Issue

2019-09-18 Thread Ali Hassan


[image: error.gif]
I was working on a project (name of project is not allow), however in my 
project i want to show 3d model or my website. My website written in go. 
Aframe i'm using. When my website load 3d model it's show warning and my 
model is not visible on my website. Please help me
  

[image: ERROR.JPG] 

-- 
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/48efac8a-0112-4006-9030-8b1f49b2a0f4%40googlegroups.com.


[go-nuts] Let's play

2019-07-12 Thread Ali Hassan

If you curious about check out the link below 
https://koohinoorgo.blogspot.com/2019/07/methods-bind-to-special-type-of-receiver.html

-- 
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/29c24a9b-ccb2-4b83-8216-a088c7bf8704%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] How to compose complex types

2019-06-27 Thread Ali Hassan
 If you're curious like me then checkout 
https://koohinoorgo.blogspot.com/2019/06/compose-complex-types.html

-- 
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/05084442-275a-497e-a67a-90a2d06e3e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Do I pass nil arguments method ?

2019-06-19 Thread Ali Hassan
Do you want to pass nil arguments then checkout my blog 
https://koohinoorgo.blogspot.com/2019/06/do-receiver-nil-argument.html. 


 Good Programmer, who write code for humans, not for machines 

-- 
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/9da94a7f-4186-40bf-8f73-101d52d468eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Pointer Method Receiver

2019-06-16 Thread Ali Hassan

https:
//koohinoorgo.blogspot.com/2019/06/methods-receiver-are-not-variable-type.html


#golang

-- 
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/4b493d1c-7f0c-4a66-9560-2a1fedae952e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] OOP AND GOLANG

2019-06-14 Thread Ali Hassan
https://koohinoorgo.blogspot.com/2019/06/object-oriented-paradigm-and-golang.html

-- 
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/388dd786-de8a-42aa-82d2-82cef2ed9b02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.