Which version of Go are you using?
https://github.com/golang/go/blob/master/src/net/pipe.go#L224
--
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
In net/pipe.go, there's this code:
func (p *pipe) SetReadDeadline(t time.Time) error {
return {...}
}
This breaks my code, which uses timeouts and dutifully checks for
errors.
I guess I have three solutions:
1. remove the error checking in my code;
2. wrap net.Pipe
On Sat, Feb 3, 2018 at 9:36 AM, wrote:
> You need the package name.
>
> var a *common.Any
Yes. Let me add that some people consider "common" to be a poor
choice for a package name. See
https://github.com/golang/go/wiki/CodeReviewComments#package-names and
the links
On Sat, Feb 3, 2018, 4:42 PM ppcfan wrote:
> We started this Go application by supervisor, so this Go app should be the
> subprocess of supervisor. Do you think it is the problem?
>
If it's coming from other processes then you should see those show up in
your ps. I was just
You need the package name.
var a *common.Any
Matt
On Saturday, February 3, 2018 at 10:45:22 AM UTC-6, l vic wrote:
>
> I am trying to alias empty interface in one package so it could be used in
> several other packages:
> in "myproject/common/common.go"
>
> package common
>
> type Any
Referencing a type from another package must specify what package it comes
from. Try:
var a *common.Any
Also, I would avoid using the term "alias" here. Type aliasing in go is
totally different from defining a new type, which is what you do here. Type
aliasing takes the form:
type T1 = T2
Hi,
I am now working as "head of code and design education" at the leading
Online Learning Company in France, operating from the heart of Paris.
We offer government certified degrees (very important in France! employers
will offer you an interview depending on which degrees you put on your
I am trying to alias empty interface in one package so it could be used in
several other packages:
in "myproject/common/common.go"
package common
type Any interface{}
But when i try to use it from another package "myproject/myutil/myutil.go"
*package myutil*
*import (*
*"*myproject/common"
I think learning the detail of these Go constructs by transliterating OOP
design patterns is good value. For example, above I mention being surprised
to learn that a method will override an embedded struct’s function field
with the same name. This may be useful for writing minimized Go code in
Really nice to hear universities taking up Go ! I hope the day comes when
we don't have to learn programming by learning C anymore.
On Saturday, 3 February 2018 16:00:20 UTC+5:30, Henrik Johansson wrote:
>
> This is good news in so many ways! Finally a useable language in
> university
This is good news in so many ways! Finally a useable language in university
courses! Sure everyone could use a good lisp now and then but for most
engineering getting to useable stuff fast is very important.
And there is a lot of stuff there! Thank you!
lör 3 feb. 2018 kl 11:18 skrev Stefan
11 matches
Mail list logo