[go-nuts] Where can I find golang library for google cloud client library for using service account

2017-06-09 Thread prajakta . dandawate
I am looking for the client library for Google cloud platform (for compute/networking, service account etc) equivalent to amazon's github.com/aws/aws-sdk-go/service for Google cloud platform. After searching on the internet I could not identify and get the right library. Please share the l

Re: [go-nuts] Re: How fast can gopacket handles?

2017-06-09 Thread Chun Zhang
Thank you Kevin for spotting the unnecessary memory allocation! Took the example code naively and didn't think through :) That does make an impact to the app and the throughput is increased by another 30Mbps to 150Mbps - ish. As a benchmark, a similar C++ version of the app is able to handle 25

Re: [go-nuts] Re: How fast can gopacket handles?

2017-06-09 Thread Egon
The usual 1. do less work, 2. don't make copies, 3. produce less garbage. e.g. 1./2. maybe you can avoid parsing the whole data and just extract the necessary bits directly. 2./3. maybe you can create a pool of packets so that the internal structures for them can be reused Essentially try to

Re: [go-nuts] Re: How fast can gopacket handles?

2017-06-09 Thread Kevin Conway
On first appearance, the article you linked to uses some patterns that are different from the same documentation in gopacket: https://godoc.org/github.com/google/gopacket#hdr-Fast_Decoding_With_DecodingLayerParser . Namely, the official docs suggest reusing the parser and results allocations while

[go-nuts] Re: XPath package and extract data from HTML/XML documents

2017-06-09 Thread venturestreamtemporary
A very, very long time ago (like 5 years ago) I implemented the Justext boilerplate removal algorithm in Go. I found it useful when I was messing around with my own Readability fun project: https://github.com/JalfResi/justext The code is probably awful (it was one of the projects I used to lear

Re: [go-nuts] Re: How fast can gopacket handles?

2017-06-09 Thread Chun Zhang
Hi, All, Update on this issue. Based on the suggestion I got earlier, I dedicated one thread, which is locked to a os thread to handle packet receiving, this thread then put the received packet on a buffered channel/queue. Without doing any extra work, this thread is able to take packets up to

Re: [go-nuts] golang thrift server 28k/s request client many dial tcp timeout ,why??

2017-06-09 Thread Shawn Milochik
I think the setting is more likely to need an increase on the client than the server. Are you using HTTP/1 or HTTP/2? If HTTP/1, set the MaxIdleConnsPerHost value on your client's Transport. More info: https://golang.org/pkg/net/http/#Transport https://paperairoplane.net/?p=556 -- You received

[go-nuts] How to find all func X calls using AST parser/types?

2017-06-09 Thread Ivan Daniluk
Hi, let's say you want to find all calls to the specific function (strconv.Atoi, for example) using AST. It's kinda easy to do using Info.Uses, but how to go from Object in Uses to the whole expression with call? Let's say, we have a code: package main import "strconv" var fn = strconv.Ato

[go-nuts] XPath package and extract data from HTML/XML documents

2017-06-09 Thread zhengchunster
Hello, everyone, i'm create an XPath project in the past few months,that implemented most of XPath functions and location paths. Now XPath package has supported Compile feature that can compile xpath expression into reused and evaluate values for specified no

Re: [go-nuts] Re: {CGO,VM}-free SQLite (ATM Linux/Intel only, pre-alpha)

2017-06-09 Thread Jan Mercl
On Fri, Jun 9, 2017 at 5:01 AM David Anderson wrote: > It looks like it takes the sqlite3 source code (specifically, https://www.sqlite.org/amalgamation.html), mechanically translates it from C to Go using https://github.com/cznic/ccgo , then adds a thin layer to adapt the database/sql interfaces

Re: [go-nuts] Is it possible to redefine basic data types?

2017-06-09 Thread Alessandro Re
On Thursday, June 8, 2017 at 6:49:41 PM UTC+2, Ian Lance Taylor wrote: > > On Thu, Jun 8, 2017 at 9:15 AM, Alessandro Re > wrote: > > Besides being possible, and probably not really practical, is it safe? > Are > > there any practical use cases where redefining some basic data types can > be

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-09 Thread 'Axel Wagner' via golang-nuts
No worries :) Glad to help increase security on the web by adding another Site with good TLS :) On Fri, Jun 9, 2017 at 10:06 AM, Sankar P wrote: > Thank you so much Axel Wagner. I was able to get everything working, once > I added the A record. Everything worked so magically together correctly :

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-09 Thread Sankar P
Thank you so much Axel Wagner. I was able to get everything working, once I added the A record. Everything worked so magically together correctly :) 2017-06-07 23:33 GMT+05:30 Axel Wagner : > On Wed, Jun 7, 2017 at 7:22 PM, Sankar P > wrote: > >> >> 2017-06-06 22:52 GMT+05:30 Axel Wagner : >> >>