The challenge method used by autocert only supports port 80 and 443. To use a
different port you will need to use the dns-01 challenge method and the ACME
client manually.
On 17 Nov 2017, at 05:59, Sankar
mailto:sankar.curios...@gmail.com>> wrote:
Hi
I have an EC2 vm where I want to run two g
What kind of confuses me around these discussions is, that there are rarely
complains about having to do the same thing with, say, python libraries. If
I press "fork" on a python library on github, people can't just "pip
install" it and get crackin'. They have to manually clone it and put it in
the
Tamas,
Can u explain ?
On Thursday, November 16, 2017 at 11:47:03 PM UTC+5:30, Tamás Gulácsi wrote:
>
> json.RawMessage
--
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 a
On Friday, 17 November 2017 02:43:48 UTC+1, Ally Dale wrote:
>
> [...]
> It seems like forcing project to put an assertion "Where I am".
> As our consensus, a good project is surely with "high cohesion", but never
> care "Where I am".
>
That's true and still the case.
The "Where I am?" arises fo
Hello!
I'm debugging a strange test failure, and with the magic of printf
debugging (t.Logf) have been adding bits to the test itself to get a sense
of what's wrong. The bad bahaviour is happening deep in library code, in a
function which returns nil for one of six reasons... I threw some
log.
Hi
I have an EC2 vm where I want to run two go https servers on different
ports.
I am using letsencrypt for the certificates and the code is like:
server1.go: log.Fatal(http.Serve(autocert.NewListener("api1.example.com"),
http.DefaultServeMux))
server2.go: log.Fatal(http.Serve(autocert.NewList
Yes, it's a debatable subject within the Go community. See this blog for
example:
https://medium.com/@c9s/golang-the-annoying-remote-import-path-c6c7e76517e5
There are some tricks you can do using a different git remote, `git remote
add myfork github.com/yourfork/project`
Then when you push, y
Hi,
I've followed your idea, it seems that go team doing this purposely.
But I don't think this is "completely reasonable".
It seems like forcing project to put an assertion "Where I am".
As our consensus, a good project is surely with "high cohesion", but never
care "Where I am".
Imagine that if
It is not entirely clear what you are trying to accomplish. I suspect
effective optimization would require rethinking or refining your algorithm.
In the benchmarks you are comparing apples to oranges.
BenchmarkByteIndexPointeur searches for a 10 byte pattern in a 56 byte
slice. On amd64 at lea
On Thu, Nov 16, 2017 at 9:46 AM, Srimanth Gunturi
wrote:
>
> My environment is unable to accept this format due to the double '=' in the
> same key/value.
That's really odd.
> Is there an alternate way of expressing the same environment variable - like
> 'GODEBUG=cgocheck:0' or something like th
On Thu, Nov 16, 2017 at 11:28 AM, wrote:
>
> I've encountered a crash with the signature "fatal error: sweep increased
> allocation count" that only appears for me in the go.1.9.x series, testing
> on linux/amd64. The memory problem appears to be triggered in this function:
Thanks for the report
This is a proposal to support a new Marshaler interface with a
context.Context in encoding/json.
*Use cases:*
Many REST APIs include meta-data that controls which attributes should be
included and omitted in the HTTP response body. These controls can be
static, meaning the serialization
Hi Jakob,
Thanks for your reply, maybe my original email didn't include enough
information. What you described is what I ended up doing as a work around
in my code:
if kind == "a" {
var ret trading.TypeA
if err := ParseRefData(f, &ret); err != nil {
log.Fa
You are setting an interface to a struct value, then passing Unmarshal a
pointer to the interface. This is the wrong “order” of pointers and will result
in Unmarshal overwriting the pointed to interface with the map. What you want
to do is pass Unmarshal a pointer to your struct type:
var x X{}
Hi,
At work I have 3 different xml files I need to parse (different fields
each), Because going from the xml bytes into a struct is pretty much the
same
for all 3 types, I thought I could do something like
var payload interface{}
if kind == "A" {
paylaod = TypeA{}
}
if kind == "B" {
pay
Hello,
I've encountered a crash with the signature "fatal error: sweep increased
allocation count" that only appears for me in the go.1.9.x series, testing
on linux/amd64. The memory problem appears to be triggered in this function:
func TruncatedAbsPathsForKind(the Kind, from AbsPoint, with Or
json.RawMessage
--
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/opto
On Thu, Nov 16, 2017 at 9:26 AM, Christian LeMoussel wrote:
>
> Go has the GOGC variable, that can also be controlled with the SetGCPercent
> function in the runtime/debug package.
> Is it possible to find the optimal value of GOGC to get the most op / s per
> report to the number of cores?
The d
My environment is unable to accept this format due to the double '=' in the
same key/value.
Is there an alternate way of expressing the same environment variable -
like 'GODEBUG=cgocheck:0' or something like that?
On Wed, Nov 15, 2017 at 9:05 PM, Ian Lance Taylor wrote:
> On Wed, Nov 15, 2017
On Thu, Nov 16, 2017 at 6:01 AM, Mike C wrote:
>
> i found an error in the example for
> https://golang.org/pkg/regexp/#Regexp.FindAllStringSubmatch but im not sure
> were to report that.
> I tried checking in https://github.com/golang/go/issues but that doesn't
> seem to be the place.
>
> Any ide
Go has the GOGC variable, that can also be controlled with the
SetGCPercent function in the runtime/debug package.
Is it possible to find the optimal value of GOGC to get the most op / s per
report to the number of cores?
--
You received this message because you are subscribed to the Google
Hello,
I am new to Go. I have structure like this for my REST POST request:
type Service struct {
ID string `json:"id,omitempty" db:"id"`
Name string `json:"name" db:"name"`
Contract struct {
Ha string `json:"ha"`
ServiceTime int`json:"service_time"`
Region string
Hi all,
i found an error in the example
for https://golang.org/pkg/regexp/#Regexp.FindAllStringSubmatch but im not
sure were to report that.
I tried checking in https://github.com/golang/go/issues but that doesn't
seem to be the place.
Any ideas on where do docs issues go ?
Cheers,
Mike
--
x/crypto/ssh does support OpenSSH's ed25519 private key files.
However, it looks like it does not support encrypted private keys in the
OpenSSH format.
See
https://github.com/golang/crypto/blob/9f005a07e0d31d45e6656d241bb5c0f2efd4bc94/ssh/keys.go#L922
and https://github.com/openssh/openssh-po
Hi,
there are two things, people might mean, when they say "fork":
a) The original meaning: Taking an open source project and adopting it,
maintaining your own changes. In this case, the forked package becomes a
different one. It has different code, maintained by different people so it
makes tota
Python equivalent of this is
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import ciphers
...
mode = ciphers.modes.GCM(b'\0' * 16, ciphertext[-16:], 16)
decryptor = ciphers.Cipher(ciphers.algorithms.AES(symmetric_key), mode,
backend=default_backend()
Hello,
In Go's standard implementation of AES-256 GCM cipher, how do I specify an
initialization vector while decrypting data? I would really appreciate if
someone can provide me some pointers here.
More context:
I'm trying to decrypt ApplePay tokens. Apple requires the data to be
decrypted usi
Hi all,
I was confused that why golang do not support referencing local package.
eg: import "./local2" //error: local import "./local2" in non-local package
I have upload a test project here:
https://github.com/vipally/localpackage
Here is my trouble:
My project path is: github.com/vipally/localpa
28 matches
Mail list logo