We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version 1.14
go env
$ go env
I want to use a socket to send a pic Gocv.Mat
conn, _ := net.Dial("tcp", "localhost:8090") encoder := gob.NewEncoder(conn) //var chip gocv.Mat fmt.Println("start read pic") gocv.IMRead("test2/1.png", 0) img := gocv.NewMat() fmt.Println("start send pic") err := encoder.Encode(img) fmt.Println(err)
The text was updated successfully, but these errors were encountered:
The error is correct. You cannot gob encode a type with no exported fields.
This is not an issue with Go, please see https://github.com/golang/go/wiki/Questions.
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to use a socket to send a pic Gocv.Mat
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: