[go-nuts] time.Now.UnixNano() incorrect under windows7?

2019-03-23 Thread Andrei Avram
I ran into time issues on Windows, too: https://groups.google.com/forum/m/#!topic/golang-nuts/W5MqeB1Ai_k -- 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-

[go-nuts] Re: I am starting Golang and I am looking for a example to Login, Logout, Signup..

2019-03-23 Thread anderson . mill . road
Hi, I have few examples that I developed. Here is the link: https://github.com/sandeepkalra/mv-backend/ The auth module shows what you are looking for Thanks, Sandeep Kalra On Tuesday, March 19, 2019 at 7:50:19 PM UTC-4, HENRI KNAFO wrote: > > Let me first tell you I am new to Golang. > > I am

Re: [go-nuts] [ANN] PipeHub: A programmable proxy server

2019-03-23 Thread Diego Bernardes
Hi Marko, Glad that you liked. I'll be posting on this topic new releases of the project. Also gonna take a look at the proxy you linked. Em sábado, 23 de março de 2019 19:07:38 UTC, Marko Ristin escreveu: > > Hi Diego, > Thanks for sharing, looks very interesting! Please keep us posted and let

[go-nuts] Re: brotli: my c2go experience

2019-03-23 Thread Andy Balholm
Now for some benchmarks. I wrote a simple benchmark program that compares my pure Go brotli package with cbrotli (the cgo wrapper in the standard brotli repo) and with compress/gzip. Here are the results for compressing Newton’s Opticks (from the testdata directory of the Go source tree): brotl

Re: [go-nuts] [ANN] PipeHub: A programmable proxy server

2019-03-23 Thread Marko Ristin-Kaufmann
Hi Diego, Thanks for sharing, looks very interesting! Please keep us posted and let us know when it's production-ready. We also implemented a simple reverse proxy at the company since we wanted it to be easy to automatically set up and configure. This helped us to add a simple reverse proxy to mic

[go-nuts] Can I set a build flag to make a package compile as a plugin?

2019-03-23 Thread jake
I would like to go build ./... but some of my subpackages should be compiled as plugins: go build go build -buildmode=plugin ./plugins/plugin.go Is there a directive or flag that I can specify to make the subpackages pick up the buildmode automatically? best, Jake -- You receiv

[go-nuts] [ANN] PipeHub: A programmable proxy server

2019-03-23 Thread Diego Bernardes
Hi, For the past weeks, I've been working in a personal project that I wanted to do for a long time. Is a programmable proxy. Load balancer, API Gateway, Cache, TLS termination, and so on, are all example of servers that run on typical stack. But why we need to run all these servers? Wouldn'

Re: [go-nuts] what +build flags do I need to distinguish between ios and macos please?

2019-03-23 Thread whitehexagon via golang-nuts
ah yes thanks, amd64, it was late :) So if I build a shared lib, it might be running in the emulator, on a device, or on my mac... I found some code referencing ios, does this look valid? // +build ios,darwin,amd64 // +build ios,darwin,arm64 ios,darwin,arm // +build !ios,darwin,amd64 Peter --

[go-nuts] Is there a reason the cert used by httptest.StartTLSServer(...) is not valid for localhost?

2019-03-23 Thread Mirko Friedenhagen
Sorry, I should have read your post more thoroughly. You probably know this all. Regards Mirko -- 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+unsubs

[go-nuts] local module rename causing build errors looking for previous module name

2019-03-23 Thread whitehexagon via golang-nuts
Bit of a strange one... I created a new module this morning, and just renamed the directory, module and associated package (all the same). I have a sub module (package main) that references the parent module, but we are talking about a dozen lines of code in the whole project so far. So 'go

Re: [go-nuts] a way to query the module sum of a dependency with the go tool?

2019-03-23 Thread Dan Kortschak
It just seemed like something that could probably exist. Partly convenience though; go mod -p verify (print) or some such would work anywhere in the module, while the approach I am using must be done at the root. Not a big deal though. thanks On Sat, 2019-03-23 at 09:54 +, Paul Jolly wrote: >

Re: [go-nuts] a way to query the module sum of a dependency with the go tool?

2019-03-23 Thread Paul Jolly
FWIW, none that I'm aware of. If there were to be such a command I would probably expect it be an option to go mod verify. Is there a problem with using go.sum in the way you're proposing? Or is this more a convenience thing? On Thu, 21 Mar 2019 at 22:03, Dan Kortschak wrote: > > Is there a com

[go-nuts] Re: time.Now.UnixNano() incorrect under windows7?

2019-03-23 Thread Uli Kunitz
Windows system time has only millisecond resolution. Windows has a feature called performance counters to measure durations with higher resolution. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivin

[go-nuts] Is there a reason the cert used by httptest.StartTLSServer(...) is not valid for localhost?

2019-03-23 Thread Mirko Friedenhagen
Hello, SSL does not care about IPs or network rules, only about the content of certificates. If you want reach something via SSL and state the IP, the certificate has to be valid for the IP. You need to add two subjectAlternativeNames when creating your certificate; 127.0.0.1 and localhost For