Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-28 Thread 'Borman, Paul' via golang-nuts
Not sure if this has been answered. Yes, you can make a global value public in the main package, but it is more or less meaningless as there is no way for another package to import your main package. It is possible there is some way that it might happen in the testing infrastructure, but that

Re: [go-nuts] Go language should become an ANSI and ISO standard.

2018-10-12 Thread 'Borman, Paul' via golang-nuts
If Go is to be standardized, it needs to be as late as possible in the development of Go 1. My observations of being involved with some standards is that the participants view it as an opportunity to change or add to whatever is being standardized. Unless the standard was simply a true

Re: [go-nuts] Help with bytes/writing to aws

2018-09-18 Thread 'Borman, Paul' via golang-nuts
It is not possible to tell from your code if that is the correct data or not. You code did not display the data it was sending (that might be illuminating). Are you sure that when you are reading the file you are displaying what was actually there? Also, why are you specifying:

Re: [go-nuts] "GOPATH" set but "go get" downloads to ~/go

2018-09-11 Thread 'Borman, Paul' via golang-nuts
Silly question, but is it exported? You can easily check with the command: env | grep GOPATH -Paul On Sep 11, 2018, at 9:30 AM, Sathish VJ mailto:sathis...@gmail.com>> wrote: I saw this behavior with a couple of Mac machines today and I was unable to debug it. Just checking to see if it is

Re: [go-nuts] Gitlab CI loses its marbles attempting go get.

2018-09-10 Thread 'Borman, Paul' via golang-nuts
Have you checked your Go version? On Sep 10, 2018, at 5:10 PM, Eric Raymond mailto:e...@thyrsus.com>> wrote: On Monday, September 10, 2018 at 5:56:23 PM UTC-4, Uli Kunitz wrote: Use GOPATH= go get -u golang.org/x/crypto/ssh/terminal The package

Re: [go-nuts] runtime: invalid pc-encoded table (invalid runtime symbol table)

2018-08-30 Thread 'Borman, Paul' via golang-nuts
Looks like a nil context? vendor/cloud.google.com/go/storage.runWithRetry.func1(0x0, 0x0, 0xc450328a20) 100 err = runWithRetry(ctx, func() error { -Paul On Aug 30, 2018, at 1:05 PM, Ewan Walker mailto:e...@grandslammedia.com>>

Re: [go-nuts] Are Go floats smarter?

2018-08-30 Thread 'Borman, Paul' via golang-nuts
For financial programs you may want to consider fixed point decimal values rather than floats. In simple terms, rather than using floating point units of currency, you use integers for the smallest acceptable quantity. This might be, for example, using an int to say how many pennies are

Re: [go-nuts] More trouble with date formatting

2018-08-29 Thread 'Borman, Paul' via golang-nuts
I put your program onto the playground: https://play.golang.org/p/L0xJgwdLuI3 I notice the output is: go1.10.3: value '2010-10-27 18:43:32 + UTC' error The default format for printing time (it is documented in the Format method on time.Time) is: Mon Jan 2 15:04:05 -0700 MST 2006 Notice

Re: [go-nuts] Re: Unexpected behavior of %+02d in Sprintf() and friends

2018-08-29 Thread 'Borman, Paul' via golang-nuts
Is it possible you used the format string “+%02d” vs “%+02d”? The first will give you the +00 you expected while the second is +0, as discussed. On Aug 29, 2018, at 6:53 AM, Eric Raymond mailto:e...@thyrsus.com>> wrote: On Tuesday, August 28, 2018 at 4:49:02 PM UTC-4, peterGo wrote: "Width is

Re: [go-nuts] Does fmt.Print* automatically render an error string in as struct (play link)

2018-08-29 Thread 'Borman, Paul' via golang-nuts
In your code, anything that implements thing also implements the error interface, which looks just like your thing interface. Printf knows to use the Error method if it is defined. See https://play.golang.org/p/JucIqt9H2FF. You will notice that with your code you can say: var e error = t

Re: [go-nuts] Unexpected behavior of %+02d in Sprintf() and friends

2018-08-28 Thread 'Borman, Paul' via golang-nuts
I believe +0 is correct. That is 2 bytes which is what you requested with %+02d and the + takes up the first byte and 0 fits in the second byte. On Aug 28, 2018, at 10:55 AM, Eric Raymond mailto:e...@thyrsus.com>> wrote: Under Go 1.10.1, feeding an 0 value to a %+02d specifier sometimes

Re: [go-nuts] Re: Regarding string immutablity

2018-08-28 Thread 'Borman, Paul' via golang-nuts
You are only overwriting the pointer to the string (a string is essentially a pointer and a length). If you want to use memory and then zero it out, use a byte slice instead and be careful to not call append where append might allocate new memory. Take a look at

[go-nuts] Re: f*ck you, golang

2017-11-23 Thread 'Paul' via golang-nuts
On Friday, July 24, 2015 at 12:19:29 AM UTC+2, Roberto Zanotto wrote: > > I have to work on a project for an university exam and the professor > highly recommends doing it in C++ with (his) FastFlow library. Now, because > of Go, I can't stand looking at object oriented code anymore. The way

[go-nuts] Re: Stalking people online for thought crimes! This is what the Go project has succumbed to!

2016-11-02 Thread 'Paul' via golang-nuts
I just discovered this thread. I used to be an avid reader of Golang-nuts mailing list, also of Golang-dev and I am in disbelief at what it has come to recently. Aram Hăvărneanu is a very important contributor to the Go Language Project, I feel embarrased on behalf of the of the Go Language

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2016-08-13 Thread 'Paul' via golang-nuts
On Saturday, August 13, 2016 at 8:06:44 PM UTC+2, Klaus Post wrote: > > On Saturday, 13 August 2016 17:18:16 UTC+2, Paul wrote: >> >> From what I gather even Adobe uses [dcraw]. >> > > I am pretty sure it is the other way around. Observing for years, it seems > like dc is reverse engineering

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2016-08-13 Thread 'Paul' via golang-nuts
I don't know what the true story actually is, however some camera hardware makers such as Nikon are giving software developers a tough time by intentionally obfuscating their metadata. A lot of folks had big problems with that including adobe. I just mentioned "reverse engineering" to indicate