[go-nuts] Re: Docker Server access Failed

2020-03-22 Thread Miki Tebeka
Hi, But when I had try to open my test website ON MY BROWSER "unable to > connect" > You probably need to export the docker port to the host OS (your computer). See https://docs.docker.com/engine/reference/run/#expose-incoming-ports HTH, Miki -- You received this message because you

Re: [go-nuts] How to clean cache for 'go tool dist test'

2020-03-22 Thread xiangdong...@gmail.com
Update: I cannot reproduce the time-out issue any longer. Thanks all. Still curious to know if there is any way to clean the cache, there used to be GOCACHE=off, but seems that it's not supported now. On Friday, March 20, 2020 at 2:01:48 PM UTC+8, xiang...@gmail.com wrote: > > I always got a

Re: [go-nuts] Tests skipping

2020-03-22 Thread Ian Lance Taylor
On Sun, Mar 22, 2020 at 7:10 PM Shane H wrote: > > I'm a lot confused by the behaviour of some tests I have at the moment, > they're skipping.. when there's no skip or timeout or... anything that I can > see > > I know this is going to be difficult because I don't have code I can paste to >

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

[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

[go-nuts] Tests skipping

2020-03-22 Thread Shane H
I'm a lot confused by the behaviour of some tests I have at the moment, they're skipping.. when there's no skip or timeout or... anything that I can see I know this is going to be difficult because I don't have code I can paste to show what's happening I'm using go1.13.9, but this behaviour

Re: [go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-22 Thread 'Axel Wagner' via golang-nuts
Yes, IMO the decision to expose errors should in general be deliberate. However, there are cases where it makes sense to wrap from the get-go. Two examples: • A function takes an io.Reader to parse the stream into some data structure (think a json-parser). It obviously uses no other input or

Re: [go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-22 Thread Marcin Romaszewicz
In my opinion, this is a much nicer errors package than Go's library, and I've been using it everywhere: https://github.com/pkg/errors Instead of fmt.Errorf("%w"), you do errors.Wrap(err, "message"), and errors.Unwrap(...) where you want to inspect the error. It's much more explicit and less

[go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-22 Thread Adrian Ratnapala
Part of the culture of Go is that we are careful to promise as little as possible in APIs, as we will be stuck with those promises long into the future. Now with Go 1.13 we can do `fmt.Errorf("It broken: %w")` which means the same thing as `fmt.Errorf("It broken: %v")` except callers get better

[go-nuts] gob or protobuf serialization question

2020-03-22 Thread Vasiliy Tolstov
Hi! I have service name it apigw that acts as api gateway. Tha acts as gateway for rest (json) and grpc micro services. I want to able to register some microserver service handler to specific path (for rest json case). But microservice expects to get protobuf message to it handler. So api gw must

Re: [go-nuts] Docker Server access Failed

2020-03-22 Thread Ian Lance Taylor
On Sun, Mar 22, 2020 at 6:28 AM 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 To get help, please tell us exactly what you did, exactly what happened,

[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

Re: [go-nuts] libgo is more fast that grouting.

2020-03-22 Thread 'Benjamin' via golang-nuts
I just read an article about Oracle sued Google for Java. Surely go programming language will be abandoned soon. Google cannot make any popular production except search engine. Google only make prototype and toy production. I think that’s bc they think they are scientists or researchers, they

[go-nuts] Re: Crud Example

2020-03-22 Thread Brian Candler
I refer the honourable gentleman to the reply I gave some moments ago: https://groups.google.com/d/msg/golang-nuts/utkLBd5wU7o/OG0T0oqBBAAJ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

Re: [go-nuts] libgo is more fast that grouting.

2020-03-22 Thread 'Benjamin' via golang-nuts
WOW,only children from poor families do programming work. > On Mar 21, 2020, at 17:41, Dan Kortschak wrote: > > Please stop. > > > On Sat, 2020-03-21 at 17:20 +0800, 'Benjamin' via golang-nuts wrote: >> Tesla is commodity, but a programming language is not. >> >> ] >> >> >>> On Mar 20,

[go-nuts] Re: Writing bitmap data to a canvas with WebAssembly

2020-03-22 Thread Scott Pakin
I figure I ought to follow up with some results. First, I got the suggested approach of local render + js.CopyBytesToJS + update canvas from image to work, so thanks, Agniva and Howard! Second, for the benefit of future readers of this

[go-nuts] Re: Crud Example

2020-03-22 Thread Leszek Kubik
If you can see response from tomcat server in your browser then certainly your go example can't bind to that port, try other port. Secondly when you put the address in the browser bar you are going to execute http GET. Finally, in your example the template is only prepared but not applied in