[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

[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"

[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

[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

[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

[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

[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

[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 > o

[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{

[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 ,

[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:&qu

[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

[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:", vis

[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 } pr

[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

[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.

[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", > e

[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{ f

[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 > &

[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

[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

[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 &q

[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

[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

[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

[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

[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 &

[go-nuts] Re: Docker Server access Failed

2020-03-22 Thread Ali Hassan
day, 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 sub

[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 rec

[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

[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 thi

[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 > > //

[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 : Li

[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

[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

[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

[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 > // >

[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

[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

[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

[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}} > > &g

[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=docum

[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
esday, 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'

[go-nuts] Re: Golang Templates

2020-07-15 Thread Ali Hassan
f 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 .}}