[go-nuts] Re: Running tests in read-only containers

2019-04-26 Thread Constantin Konstantinidis
Your description seems to relate to this issue https://github.com/golang/go/issues/30667. -- 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...

[go-nuts] Re: Does fmt.Fprint use WriteString ?

2019-04-23 Thread Constantin Konstantinidis
The result is equivalent but a micro-benchmark shows that pkg io is 3x faster. go version go1.12.2 windows/amd64 pkg: github.com/iWdGo/GoCompilerEfficiency/src/writestring BenchmarkFmtWriteString-4 50 2002 ns/op BenchmarkIoWriteString-4 200 635 n

Re: [go-nuts] why does reading a file on windows add CRLF to unix line endings... sometimes?

2019-04-23 Thread Constantin Konstantinidis
$ git version git version 2.20.1.windows.1 $ go version go version go1.12.2 windows/amd64 $ git config -l | grep autocrlf core.autocrlf=true core.autocrlf=true Same issue remains intermittent. It is reproducible using git checkout -- Discarding changes sets default back to CRLF. I could not loca

[go-nuts] Re: Does fmt.Fprint use WriteString ?

2019-04-22 Thread Constantin Konstantinidis
fmt.Fprint is calling io.WriteString as you can this comment and the code around indicates. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To u

[go-nuts] Re: Get dependency from enterprise repository

2018-10-09 Thread Constantin Konstantinidis
jFrog is my working environment. I remain puzzled by the %21 character in the error message. Is it a typo or is it really included in the error message ? Could you share the GOPROXY set up that you used ? -- You received this message because you are subscribed to the Google Groups "golang-nuts

[go-nuts] Re: Importing local package

2018-10-09 Thread Constantin Konstantinidis
I don't see clearly which OS you run on, but "../cli" should work if you run locally. On Tuesday, October 9, 2018 at 6:49:20 PM UTC+2, D Whelp wrote: > > Hello all, > > Super new to Golang, loving the hell out of it, but I am running into a > small issue. I have a small application that I am w

[go-nuts] Re: Can go-dockerclient be built with go modules?

2018-08-14 Thread Constantin Konstantinidis
An issue is already opened cf. https://github.com/golang/go/issues/22291 On Saturday, August 11, 2018 at 8:08:01 PM UTC+2, Joseph Lorenzini wrote: > > > All: > > Using vgo, I haven't been able to build a go package with this library. > Using go 1.10, I can successfully build this library. > > htt

[go-nuts] Re: Behavior of DotReader

2018-05-13 Thread Constantin Konstantinidis
Hello, RFC 5321 states in 3.3 : "If the mailbox specification is not acceptable for some reason, the server MUST return a reply indicating whether the failure is permanent (i.e., will occur again if the client tries to send the same address again) or temporary (i.e., the address might be

[go-nuts] Re: net/http: request canceled while waiting for connection

2016-07-12 Thread Constantin Konstantinidis
Hello, A simple search on https://github.com/golang/go/ will display various reasons. Is there a good reason to avoid upgrading to 1.6.2 and possibly 1.7. Many issues were treated in the meantime. Regards, On Tuesday, July 12, 2016 at 12:15:48 PM UTC+2, DM wrote: > > Hi > > We making some http

Re: [go-nuts] liteide x30.1 released

2016-07-06 Thread Constantin Konstantinidis
I couldn't locate the information. Could it be that liteIDE is only using LF and not Windows CRLF ? Is this an option ? It creates annoyances with other resources on Windows. Thank you, On Wednesday, July 6, 2016 at 8:25:26 AM UTC+2, visualfc wrote: > > The x30.1 has windows close bug, fix and

Re: [go-nuts] Unsure when two interfaces are considered identical

2016-07-04 Thread Constantin Konstantinidis
ork. > > Ian pointed out that there was an issue recently created that addressed > this. I'm hoping that it can make it into Go 1.8 and I'm interested in > finding out what I can do to help that happen. > > Jon > > On Monday, July 4, 2016 at 10:54:03 AM UTC-4, Co

Re: [go-nuts] Unsure when two interfaces are considered identical

2016-07-04 Thread Constantin Konstantinidis
It seems to me that the compiling error is adequate guidance. fmt.Printf("%v %T",V.Calculate(2,8)) displays 10 %!T(MISSING) ie Calculate returns a untyped value. If you try to set the type by using the standard interface of type CalcB fmt.Println(ib.Calculate(CalcB(i)).Result()) then the compiling

[go-nuts] Re: Matrix Library && colour uint32's vs uint8's

2016-07-04 Thread Constantin Konstantinidis
I noticed that you also use the image/color package. There uint8 are indeed mention for Color func. You fill in your matrix using uint8() but the type of the image might be lost between your routines as explained in https://blog.golang.org/go-image-package as you use src (generic) and not typed

[go-nuts] Re: Matrix Library && colour uint32's vs uint8's

2016-07-03 Thread Constantin Konstantinidis
I cannot answer about the matrix library but the package is consistently talking about int and not uint8 If you look at the specification https://golang.org/pkg/image/#RGBA.SetRGBA You can impose 64bit which is not your pupose but apparently truncating int is not mandatory. Can you indicate where

[go-nuts] Re: How to build gomobile from source

2016-07-03 Thread Constantin Konstantinidis
Complete post is here https://groups.google.com/forum/#!topic/golang-nuts/eHUauZwcHrg On Sunday, July 3, 2016 at 5:40:03 PM UTC+2, Constantin Konstantinidis wrote: > > Upgrade to 1.6.2 would be a good idea. > Similar post is advising to use > https://go-review.googlesource.com/#

[go-nuts] Re: How to build gomobile from source

2016-07-03 Thread Constantin Konstantinidis
Upgrade to 1.6.2 would be a good idea. Similar post is advising to use https://go-review.googlesource.com/#/c/24720/ to fix similar issues. On Sunday, July 3, 2016 at 3:57:54 PM UTC+2, power...@163.com wrote: > > I failed to build gomobile, here are my steps, > > 1. git clone https://go.google

[go-nuts] Re: Help with the the Get url: EOF error (http client)

2016-07-02 Thread Constantin Konstantinidis
I would suggest to first upgrade to 1.6.2 as investigating and support will be complicated by all the changes which occured since then. On Saturday, July 2, 2016 at 11:07:22 AM UTC+2, Pontus Lundin wrote: > > Hi, > > So i have a client running for months doing re-occuring work against a > SOAP w

[go-nuts] Re: can't install gomobile

2016-07-02 Thread Constantin Konstantinidis
It seems tha the Android SDK cannot be found. If installed, it should be in your PATH variable. On Saturday, July 2, 2016 at 4:56:58 AM UTC+2, JM wrote: > > windows pro on 64x. Anyone know what's going on here? Im using the > following reference. https://github.com/golang/go/wiki/Mobile > >

[go-nuts] Re: Questions about struct conversion

2016-07-01 Thread Constantin Konstantinidis
2016 at 4:30:54 PM UTC+2, mura wrote: > > Hi, > > Thanks for your reply. > > FWIW, this code works: https://play.golang.org/p/hcakVsG6qd > > So the naming of structs or their field probably doesn't matter. > > On Friday, July 1, 2016 at 3:49:11 PM UTC+8, Constant

[go-nuts] Re: Questions about struct conversion

2016-07-01 Thread Constantin Konstantinidis
You are redeclaring the package type. When converting type, the conversion semantics is simply mytype(a) and conversion occurs if the rule that you mention is respected. I suppose that you need to have your own struct to store date, with a different name everything works. The package type is inde

[go-nuts] Re: Getting a pointer in a type switch gives a *interface {} if case lists several options

2016-06-26 Thread Constantin Konstantinidis
This is (old) documented issue https://github.com/golang/go/issues/460 related to multiple values in one case of the switch. On Sunday, June 26, 2016 at 5:40:55 PM UTC+2, Constantin Konstantinidis wrote: > > A part of the answer is in the specifications as the method set is > inher

[go-nuts] Re: Getting a pointer in a type switch gives a *interface {} if case lists several options

2016-06-26 Thread Constantin Konstantinidis
A part of the answer is in the specifications as the method set is inherited from the type https://golang.org/ref/spec#Method_sets On Wednesday, June 22, 2016 at 12:02:02 AM UTC+2, raido...@gmail.com wrote: > > I have encountered some unexpected and inconsistent behavior with type > switches. C

[go-nuts] Re: Unused var written in closure

2016-06-26 Thread Constantin Konstantinidis
The official statement is here https://golang.org/doc/faq#unused_variables_and_imports Compiling methods details are slightly above. On Sunday, June 26, 2016 at 3:15:15 PM UTC+2, Hotei wrote: > > > > On Saturday, June 25, 2016 at 3:34:57 PM UTC-4, Val wrote: >> >> Hello >> It seems that this code

[go-nuts] Re: Unused var written in closure

2016-06-26 Thread Constantin Konstantinidis
If you set the var statement outside the main func, the issue is gone because err is then a "global" var. Setting var inside main makes it a local "unused" var. If the returning code must be discarded then _ = f() also solves the issue. Regards, On Saturday, June 25, 2016 at 9:34:57 PM UTC+2, Va