[go-nuts] Re: Go - logo commercial use

2019-02-14 Thread Haddock
Nice work, you need to add Kotlin, Scala, Hadoop, Redis, MongoDB, Kafka, Spark, ... :-))) Am Donnerstag, 14. Februar 2019 00:15:49 UTC+1 schrieb agabo...@gmail.com: > > I would love to be able to include your logo as part of our inventory > (sticker site) but aren’t sure of the restrictions

Re: [go-nuts] Re: Handling connection retries on a highly-available service

2019-02-14 Thread Tamás Gulácsi
If you need to drop, then a logging goroutine on a channel that writes the log, and all logging callers select with default drop on that channel. -- 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] How to do a cleanup of context cancelling?

2019-02-14 Thread Jingguo Yao
https://blog.golang.org/context uses the following code to cancel the request if ctx.Done is closed before the goroutine exits: func httpDo(ctx context.Context, req *http.Request, f func(*http.Response, error) error) error { // Run the HTTP request in a goroutine and pass the response to f.

Re: [go-nuts] Re: Handling connection retries on a highly-available service

2019-02-14 Thread marc . zahn
I don't get it. Why are they supposed to be dropped only because the logging service is down? Making a service between P and the logger is an interesting way to go > Another service which could be down then as well? Why not a Queue? Am Donnerstag, 14. Februar 2019 10:05:40 UTC+1 schrieb Michel

[go-nuts] loop - Help

2019-02-14 Thread afriyie . abraham
Hi, Am quite new in go language and asking for help. I have this JSON object in mongodb with collection name "COLLECTION", I have multiple object in the database (mongo) and would like to access all the string values """apiVersionInUri": "string", in all the objects. Can anyone help me do this

[go-nuts] Re: how to implement channel priorities?

2019-02-14 Thread kanglingv
select { case highVal := <- high: case lowVal := <- low: if len(high) > 0 { for len(high) > 0 { highVal := <- high } } // process lowVal } On Tuesday, July 24, 2012 at 5:16:16 AM UTC+8, Erwin Driessens wrote: > > Hello, > >

Re: [go-nuts] loop - Help

2019-02-14 Thread Burak Serdar
On Thu, Feb 14, 2019 at 5:33 AM wrote: > > Hi, > > Am quite new in go language and asking for help. > I have this JSON object in mongodb with collection name "COLLECTION", > I have multiple object in the database (mongo) and would like to access all > the string > values """apiVersionInUri":

[go-nuts] Re: Missing well-known IPv4 address

2019-02-14 Thread John Dreystadt
Sigh, I see your point. One of those ugly issues where the standard allows a whole range of values but in reality people only ever use one specific value. But you don't want to hard code something because of the standard. -- You received this message because you are subscribed to the Google

[go-nuts] reserved variable names

2019-02-14 Thread Manlio Perillo
As far as I know, Go currently does not have a list of "reserved" variable names, however some tools that generate code do use special names to avoid potential conflicts. As an example, stringer add a "_" prefix to each variable. I don't remember where, but I have seen variable names with a "_"

Re: [go-nuts] reserved variable names

2019-02-14 Thread Michael Jones
looking back: https://stackoverflow.com/questions/2627511/why-do-c-compilers-prepend-underscores-to-external-names On Thu, Feb 14, 2019 at 8:54 AM Manlio Perillo wrote: > As far as I know, Go currently does not have a list of "reserved" variable > names, however some tools that generate code do

Re: [go-nuts] How to do a cleanup of context cancelling?

2019-02-14 Thread Ian Lance Taylor
On Thu, Feb 14, 2019 at 2:13 AM Jingguo Yao wrote: > > https://blog.golang.org/context uses the following code to cancel the request > if ctx.Done is closed before the goroutine exits: > > func httpDo(ctx context.Context, req *http.Request, f func(*http.Response, > error) error) error { >

[go-nuts] Re: Question for "net" package experts

2019-02-14 Thread John Dreystadt
The docs state “Network returns the address's network name, "ip+net".” which is accurate but not really an answer. I was asking if there is some meaning for this value. If it was just “ip” this would actually make more sense to me because it would indicate that TCP and UDP were both supported,

[go-nuts] Re: Question for "net" package experts

2019-02-14 Thread mikioh . public . networking
> but not really an answer. I was asking if there is some meaning for this value. oh, sorry, i misunderstood your question. the returned value from the network method of the net.addr interface can be used to pass to connection setup and endpoint resolving functions as an argument. at that

[go-nuts] Question for "net" package experts

2019-02-14 Thread John Dreystadt
The Network function of the various Addr types in the "net" package sometimes returns the string "net+ip". I don't see any description of this value and the my best guess is that it is saying that the address is an IP network address (from the ip) and it is a network address (from the net) but

[go-nuts] Re: bulding pipelines in golang

2019-02-14 Thread clementauger888
hi, sorry to come back so quickly, after those last updates about memory management optimizations, i want to share those latest optimizations about the cpu and some thoughts... the results are good, on this configuration, compared to the bounded.go. the solution consists of a new type of

[go-nuts] Re: Question for "net" package experts

2019-02-14 Thread mikioh . public . networking
the docs on the network method of ipnet mentions "ip+net". -- 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