[go-nuts] openid connect

2017-05-03 Thread Nathan Kerr
Try using https://github.com/markbates/goth -- 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...@googlegroups.com. For more options, visit

[go-nuts] Fully-qualified import paths and Pull Requests

2017-05-03 Thread Nathan Kerr
http://blog.sgmansfield.com/2016/06/working-with-forks-in-go/ gives some good pointers on how to do this. -- 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

[go-nuts] Re: Feedback welcome: "Shorten your URL"

2017-05-03 Thread Nathan Kerr
There are also responses here: Feedback Welcome: ‘Shorten your URL’ On Tuesday, May 2, 2017 at 9:32:45 AM UTC+2, Lutz Horn wrote: > > Hi Go Nuts, > > to practice my Go skills, I've implemented a simple

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:53:42 PM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 4:38 PM T L > wrote: > > > The request is not essential, but any harm of it? > > How can anybody know that if nobody knows what it shall actually do and > what will be the impact on

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 6:00 PM T L wrote: > Just like what expected for constants. For constants it's expected to reuse the last iota expression when absent. Do you propose that var ( a = iota b ) will become valid and

[go-nuts] Re: [ANN] the busy man: init repo quickly

2017-05-03 Thread Tong Sun
Hi, That'd be very useful, but only under one condition IMO, is that people can do apt get install the-busy-man and get all the dependent tools of the-busy-man installed *automatically*. Otherwise, if people have to figure out the dependencies *themselves*, and install them *one by

[go-nuts] Re: ...interface{} vs interface{} + reflection

2017-05-03 Thread Jonathan Hall
Nice find wrt: mgo. That is a good analogy. And thanks for your input. That is a good observation that it could also save some internal conversion. -- Jonathan On Tuesday, May 2, 2017 at 8:12:39 PM UTC+2, Jonathan Hall wrote: > > I have a public API that takes `...interface{}` as an argument.

[go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
. -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
Thanks. I've checked it and I think there is something wrong with this lib. If I do: dat := make([]byte, 515) slice.Bytes.Put() println(dat) And then: p := slice.Bytes.Get(515).(*[]byte) println(*p) It returns me a different slice. To get the same slice, I need to go down from 515 to 512

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Thursday, May 4, 2017 at 12:17:13 AM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 6:00 PM T L > wrote: > > > Just like what expected for constants. > > For constants it's expected to reuse the last iota expression when absent. > Do you propose that > > var

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:51:00 PM UTC+8, Axel Wagner wrote: > > I think it has been pointed out to you before, that go isn't a project > where "The request is not essential, but any harm of it?" is an acceptable > justification to add things. > > Or, to put it another way: Any addition

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread Ayan George
On 05/03/2017 10:38 AM, T L wrote: > > > On Wednesday, May 3, 2017 at 9:28:28 PM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 3:19 PM T L > wrote: > > Why would you want to assign iota to a variable? What value should > iota in such case have? > > > The request

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 11:39:29 PM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 5:07 PM T L > wrote: > > > The complexity is the same as iota in constant declarations. > > How can that be claimed when still nobody ever seen any specification of > what var foo

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
No sorry - I think I did not do it right. I am supposed to allocate the slice with "slice.Bytes.Get(515).(*[]byte)" not "make([]byte, 515)" In which case I still don't know why it's eating up my mem... :) On Wednesday, May 3, 2017 at 6:28:20 PM UTC+2, Piotr Narewski wrote: > > Thanks. > > I've

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
On Wed, May 3, 2017 at 4:59 PM, T L wrote: > > On Wednesday, May 3, 2017 at 10:51:00 PM UTC+8, Axel Wagner wrote: >> >> I think it has been pointed out to you before, that go isn't a project >> where "The request is not essential, but any harm of it?" is an acceptable >>

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
I think it has been pointed out to you before, that go isn't a project where "The request is not essential, but any harm of it?" is an acceptable justification to add things. Or, to put it another way: Any addition has a harm, which is, that it's complicating the language. You need to make your

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:45:09 PM UTC+8, Tong Sun wrote: > > Oh, I misread the title. > > But iota only change while defining constance. Assigning them to variables > will either get zero all the time, or Go need to define a very complicated > theme how iota change while defining

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 4:38 PM T L wrote: > The request is not essential, but any harm of it? How can anybody know that if nobody knows what it shall actually do and what will be the impact on the complexity of the specification and implementation? -- -j -- You

Re: [go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread 'Axel Wagner' via golang-nuts
Yes, that would be the correct approach. And yes, the fork wouldn't be go-gettable, but it isn't supposed to be long-lived or go-got anyway; it's a fork to do a pull-request. If you want to do an actual fork (not what github calls a fork, but what the open source community calls a fork), you are

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 5:07 PM T L wrote: > The complexity is the same as iota in constant declarations. How can that be claimed when still nobody ever seen any specification of what var foo = iota shall do at all? The space of possible semantics is unbounded. The sane

[go-nuts] Re: [ANN] listser/mutexer/channeler: generators.

2017-05-03 Thread mhhcbon
hi > Can anyone else recommend any other generators that produce lists/iterators like this? good Q. > Is the resulting generated code safe to use from multiple go routines? The slice itself nop, because, for that you want to use https://github.com/mh-cbon/channeler or

Re: [go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:59:34 PM UTC+8, T L wrote: > > > > On Wednesday, May 3, 2017 at 10:51:00 PM UTC+8, Axel Wagner wrote: >> >> I think it has been pointed out to you before, that go isn't a project >> where "The request is not essential, but any harm of it?" is an acceptable >>

Re: [go-nuts] GC problem

2017-05-03 Thread Serhat Sevki Dincer
Ok if GOGC is the trigger point, then out-of-memory error should be consistent on all Ubuntu 64-bit 4gb systems, right? If so, why cant peterGo reproduce the crash? 2 May 2017 16:08 tarihinde "Юрий Соколов" yazdı: > There is nowhere told that GOGC defines border that

Re: [go-nuts] Re: Sorting an array of time.Duration

2017-05-03 Thread Michael Jones
Ram, Here is another example, a slightly modified version of ojucie's program: https://play.golang.org/p/uLsyW6oxz7 The difference here is to show the idea of making a custom type this is simply for the purpose of defining extra behaviors, such as those needed by Sort. On Tue, May 2, 2017 at

[go-nuts] Re: No Allman-Style, No go!

2017-05-03 Thread ecstatic . coder
BTW, I've just released Genesis, an open source generic preprocessor which automatically converts Allman style code into K and allows genericity by parametric instantiation. https://github.com/senselogic/GENESIS Better late than never... ;) On Saturday, September 21, 2013 at 3:58:03 AM UTC+2,

[go-nuts] Re: bug or not?

2017-05-03 Thread mhhcbon
similarly, it is possible to rewrite len, or a package id. I got caught some times about that, since then i take care about that. but yeah, feels weird. btw, what means RHS / LHS in ast package and in the comment by cznic ? many times i read it and wonder.. On Wednesday, May 3, 2017 at

[go-nuts] Re: [ANN] listser/mutexer/channeler: generators.

2017-05-03 Thread omarshariffdontlikeit
This looks really good. Can anyone else recommend any other generators that produce lists/iterators like this? On Saturday, April 29, 2017 at 4:06:27 PM UTC+1, mhh...@gmail.com wrote: > > Hi, > > several generators i made to avoid some duplication. > > https://github.com/mh-cbon/lister > >

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread Tong Sun
I have no problem assigning iota to variables. Can you elaborate a bit pls? On Wednesday, May 3, 2017 at 9:19:46 AM UTC-4, T L wrote: > > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

[go-nuts] Re: [ANN] listser/mutexer/channeler: generators.

2017-05-03 Thread omarshariffdontlikeit
Is the resulting generated code safe to use from multiple go routines? On Saturday, April 29, 2017 at 4:06:27 PM UTC+1, mhh...@gmail.com wrote: > > Hi, > > several generators i made to avoid some duplication. > > https://github.com/mh-cbon/lister > > Package lister is a generator to generate

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread st ov
In reading deeper, is the post saying to put my fork at the canonical path locally. So I'd clone my fork, *github.com/me/foo* to *github.com/original/foo* *locally* But setup the git remote to push to *github.com/me/foo* Then locally, I would use the fully-qualified import path of import (

[go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread T L
It would be great if it is possible that the collector only collect a specified memory block groups. For example, runtime.GC(group []unsafe.Pointer), will only collect the memory blocks only referenced by the group parameter. On Wednesday, May 3, 2017 at 2:35:43 AM UTC+8, Piotr Narewski wrote:

Re: [go-nuts] Re: http: TLS handshake error from :: EOF

2017-05-03 Thread James Hartig
We're also seeing 100k of these errors per day per server. The majority of the time its just a result of: client SYN server SYN-ACK client FIN server FIN-ACK or client SYN server SYN-ACK Retransmission Retransmission RST ... The error if the version is unsupported is: http: TLS handshake

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread st ov
Thanks, if I read that right the post just rehashes the workflow for working with remotes with git and go get. The question I have concerns the import path in the code. If I fork, *github.com/original/foo* clone it locally to, *github.com/me/foo* Add *github.com/me/foo/internal/bar/bar.go* and

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 9:28:28 PM UTC+8, Jan Mercl wrote: > > On Wed, May 3, 2017 at 3:19 PM T L > wrote: > > Why would you want to assign iota to a variable? What value should iota in > such case have? > > The request is not essential, but any harm of it? > > --

Re: [go-nuts] ...interface{} vs interface{} + reflection

2017-05-03 Thread roger peppe
I'd say your case isn't dissimilar to this one: https://godoc.org/gopkg.in/mgo.v2#Iter.All >From a brief glance at your code, I'd think that using interface{} rather than []interface{} is a reasonable approach. It could actually save the conversion to []interface{} completely in some places (for

[go-nuts] Re: bug or not?

2017-05-03 Thread pierre . curto
RHS = right hand side LHS = left hand side Le mercredi 3 mai 2017 14:53:40 UTC+2, mhh...@gmail.com a écrit : > > similarly, it is possible to rewrite len, or a package id. > > I got caught some times about that, > since then i take care about that. > > but yeah, feels weird. > > btw, what means

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 3:19 PM T L wrote: Why would you want to assign iota to a variable? What value should iota in such case have? -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread Tong Sun
Oh, I misread the title. But iota only change while defining constance. Assigning them to variables will either get zero all the time, or Go need to define a very complicated theme how iota change while defining variables, very complicated I assume. On Wednesday, May 3, 2017 at 10:39:47 AM

[go-nuts] bug or not?

2017-05-03 Thread T L
https://github.com/golang/go/issues/20219 -- 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...@googlegroups.com. For more options, visit

[go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
OK, I get it. I've just tried it and unfortunately it doesn't seem to be better than the traditional approach. With the pool in place, it still user too much memory (unlike my solution with using a heap via glibc). Anyway, thanks - it was worth trying. On Wednesday, May 3, 2017 at 3:33:12 PM

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 4:24 PM Piotr Narewski wrote: > I've just tried it and unfortunately it doesn't seem to be better than the traditional approach. > > With the pool in place, it still user too much memory (unlike my solution with using a heap via glibc). Sorry to hear

Re: [go-nuts] Re: Will deleting a key from a map in an iteration prevent some keys being iterated in the same iteration?

2017-05-03 Thread T L
On Tuesday, May 2, 2017 at 10:07:11 PM UTC+8, Keith Randall wrote: > > Yes, all keys present in the map at the start of iteration, that aren't > deleted during iteration, will be returned during iteration. > Thanks for the clarification. > > On Monday, May 1, 2017 at 4:51:56 AM UTC-4, T L

Re: [go-nuts] Re: go get -u doesn't update dependencies

2017-05-03 Thread anatoly techtonik
I am pretty sure GOPATH is correct. There are also no symlinks. Unless `go` created them itself. On Tue, May 2, 2017 at 11:35 AM, Dave Cheney wrote: > One cause can be an incorrect GOPATH setting (if the source is outside > GOPATH, possibly due to symlinks) > > > On Tuesday, 2

Re: [go-nuts] Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
Thanks. Sorry, but I don't quite get this usage example. Wouldn't it require me to only use slices of a fixed size? On Tuesday, May 2, 2017 at 9:30:45 PM UTC+2, Jan Mercl wrote: > > On Tue, May 2, 2017 at 8:35 PM Piotr Narewski > wrote: > > > Does anyone know a way to do

[go-nuts] Re: why iota can't be assigned to variables?

2017-05-03 Thread T L
On Wednesday, May 3, 2017 at 10:27:47 PM UTC+8, Tong Sun wrote: > > I have no problem assigning iota to variables. Can you elaborate a bit > pls? > package main var a = iota // undefined: iota func main(){ var a = iota // undefined: iota } > > On Wednesday, May 3, 2017 at 9:19:46 AM

Re: [go-nuts] Is there a way to fee a memory object on demand?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 3:14 PM Piotr Narewski wrote: > Wouldn't it require me to only use slices of a fixed size? No, the slice.Pool object has 63 sync.Pool objects: https://github.com/cznic/internal/blob/e5e1c3e9165d0a72507c2bbb0ffac1c02b8d3f7c/slice/pool.go#L95, ie. 63

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
but const ( a = iota b s string d ) is not a valid declaration. You can't say "the rule is the same for constants". Again: const-declarations and variable declarations are very different. You can not argue "it's the same"; it's not. On Wed, May 3, 2017 at 6:28 PM, T L

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 6:50 PM Piotr Narewski wrote: > Perhaps that is the reason; when I need 515 bytes, it actually allocates 1024 > This might be when I'm loosing the mem. Not if you Put() it back after use ;-) It's of course also possible to make the allocation

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
:-) I see what you mean, but unfortunately I cannot put it back just yet.. ;-) But the whole idea is a good thing to explore. Most of the data chunks I use have certain sizes - perhaps I can sort them into some groups hold by separate pools. I'm going to look int this kind of solution. Thank

Re: [go-nuts] GC problem

2017-05-03 Thread peterGo
Serhat Şevki Dinçer, FYI Swapfiles by default in Ubuntu http://blog.surgut.co.uk/2016/12/swapfiles-by-default-in-ubuntu.html "By default, in Ubuntu, we usually create a swap partition." "Starting from 17.04 Zesty Zapus release, instead of creating swap partitions, swapfiles will be used by

[go-nuts] Re: [ANN] the busy man: init repo quickly

2017-05-03 Thread mhhcbon
hi, I HEARD YOU : ) It is installing the software for you JIT, see https://github.com/mh-cbon/the-busy-man/blob/master/emd/tbm.go#L36 ;) And yes, unfortunately, it does not *yet* complete the whole setup like https://github.com/mh-cbon/go-github-release And yes it uses HEAD everywhere, its

Re: [go-nuts] GC problem

2017-05-03 Thread Jesper Louis Andersen
TL;DR: It depends on the kernels configuration and the amount of swap space. Longer explanation: When a malloc() is granted by the kernel, it allocates the space virtually. It doesn't yet assign physical DRAM space to the allocation because it speculates that you are not going to use all the

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote: > > but > const ( > a = iota > b > s string > d > ) > is not a valid declaration. You can't say "the rule is the same for > constants". > For the same rule, I mean just copying the corresponding part from last

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread 'Axel Wagner' via golang-nuts
On Wed, May 3, 2017 at 7:04 PM, T L wrote: > > > On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote: >> >> but >> const ( >> a = iota >> b >> s string >> d >> ) >> is not a valid declaration. You can't say "the rule is the same for >>

Re: [go-nuts] GC problem

2017-05-03 Thread peterGo
Serhat Şevki Dinçer, "why cant peterGo reproduce the crash?" Because I have swap space. $ go build ssd.go $ cat /proc/swaps FilenameType SizeUsedPriority /dev/sda5 partition79994840 -1 $ ./ssd 8 9 $ cat /proc/swaps Filename

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 6:28 PM Piotr Narewski wrote: > I've checked it and I think there is something wrong with this lib. I haven't checked thoroughly, but it seems to be working as intended. If you Put(515) the correct bin to use is the one for sizes 257-512. If you

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Piotr Narewski
Yes. Perhaps that is the reason; when I need 515 bytes, it actually allocates 1024 This might be when I'm loosing the mem. On Wednesday, May 3, 2017 at 6:47:53 PM UTC+2, Jan Mercl wrote: > > On Wed, May 3, 2017 at 6:28 PM Piotr Narewski > wrote: > > > I've checked it and I

Re: [go-nuts] Re: Is there a way to fee a memory object on demand?

2017-05-03 Thread Jan Mercl
On Wed, May 3, 2017 at 6:39 PM Piotr Narewski wrote: > I am supposed to allocate the slice with "slice.Bytes.Get(515).(*[]byte)" not "make([]byte, 515)" Yes. Even better is p := slice.Bytes.Get(n) b := *p ... use b as usual, it's already a []byte.

[go-nuts] Re: RTP/RSTP and OVNIF?

2017-05-03 Thread howardcshaw
https://golanglibs.com/top?q=rtsp lists several for rstp. I have not used any, so I cannot recommend one over another. As for ONVIF, I don't know of any implementations, but it is just a SOAP api, so generic SOAP programming should be enough to interact with it, I believe. Here is a SOAP/WSDL

Re: [go-nuts] Interaction between Test and Benchmark functions?

2017-05-03 Thread Peter Fröhlich
I can now confirm that in Go 1.8.1 this is *much* less of a problem than in Go 1.7.5 although the details of what's happening there are still quite unclear to me. Here's what I get now, comparing the benchmarks with all test cases included and with some test cases commented out: -CUT- $

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread st ov
Should the source repo be cloned or forked first? Or does it not matter? I was thinking there could be an issue with someone pushing a change after its cloned but before its forked. On Tuesday, May 2, 2017 at 11:55:41 PM UTC-7, Nathan Kerr wrote: > >

Re: [go-nuts] why iota can't be assigned to variables?

2017-05-03 Thread T L
On Thursday, May 4, 2017 at 1:21:52 AM UTC+8, Axel Wagner wrote: > > On Wed, May 3, 2017 at 7:04 PM, T L > wrote: > >> >> >> On Thursday, May 4, 2017 at 12:46:47 AM UTC+8, Axel Wagner wrote: >>> >>> but >>> const ( >>> a = iota >>> b >>> s string >>> d >>> )

[go-nuts] Re: iota with gaps

2017-05-03 Thread Egon
On Wednesday, 3 May 2017 07:34:16 UTC+3, Tong Sun wrote: > > Hi, > > How to use `iota` to define consts that have gap(s) in them? > > E.g., If my consts are, > > 1, 2, 3, 7, 8, 9 > > How to use iota to define them? Thx. > You don't have to use iota. If these are predefined constants, such as

[go-nuts] go/mobile: is it possible to publish go build ios app on appstore?

2017-05-03 Thread hui zhang
Here is a document to show how to publish go build app on google play https://pt.slideshare.net/takuyaueda967/go-for-mobile-games However , there is no document on how to publish go build app on app store how to do this, is it possible ? And it is much easier to integrate ios framework than

[go-nuts] [ANN] the busy man: init repo quickly

2017-05-03 Thread mhhcbon
Hi, made that because i was super lazy... https://github.com/mh-cbon/the-busy-man So now i can do, 1/ add an alias of my preferred repo init, $ cat <> ~/.bashrcalias tbm="the-busy-man git:init license:mit emd:mh-cbon/emd golang gump:mh-cbon/gump git:commit changelog

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread mhhcbon
Do you have any idea how that d work with other vcs ? On Wednesday, May 3, 2017 at 8:55:41 AM UTC+2, Nathan Kerr wrote: > > http://blog.sgmansfield.com/2016/06/working-with-forks-in-go/ gives some > good pointers on how to do this. -- You received this message because you are subscribed to

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread Dave Cheney
You can simulate this with most source control systems by manually checking out your fork in the original location. Say hg clone https://bitbucket.org/davecheney/pkg $GOPATH/src/bitbucket.org/project/pkg -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread mhhcbon
Thanks! Alright, i need to test that, im not used to HG, bzr. Kind of forgotten about svn (:/) meanwhile, https://github.com/mh-cbon/fork On Wednesday, May 3, 2017 at 12:19:07 PM UTC+2, Dave Cheney wrote: > > You can simulate this with most source control systems by manually > checking out

Re: [go-nuts] Re: iota with gaps

2017-05-03 Thread roger peppe
On 3 May 2017 at 09:36, Egon wrote: > On Wednesday, 3 May 2017 07:34:16 UTC+3, Tong Sun wrote: >> >> Hi, >> >> How to use `iota` to define consts that have gap(s) in them? >> >> E.g., If my consts are, >> >> 1, 2, 3, 7, 8, 9 >> >> How to use iota to define them? Thx. > > >

Re: [go-nuts] Errors from Gob

2017-05-03 Thread Chris Hopkins
Yeah until the comment about NFS I hadn't thought that the file system would be generating those errors and passing that through to Gob back to me. Silly in retrospect, sorry. I wasn't aware of that architecture that there was a mapping within Go from the error number to an error string. Could I

Re: [go-nuts] Re: iota with gaps

2017-05-03 Thread mhhcbon
indeed, totally misleading for me, https://play.golang.org/p/pMbeLffTnS On Wednesday, May 3, 2017 at 1:05:35 PM UTC+2, rog wrote: > > On 3 May 2017 at 09:36, Egon wrote: > > On Wednesday, 3 May 2017 07:34:16 UTC+3, Tong Sun wrote: > >> > >> Hi, > >> > >> How to use

[go-nuts] Re: Fully-qualified import paths and Pull Requests

2017-05-03 Thread Dave Cheney
This discussion could get confusing if we're not clear about our terms. Could you please describe what the terms cloned and forked mean to you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving