Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread Kurtis Rader
On Fri, Oct 16, 2020 at 2:36 PM nilsocket wrote: > I was trying to create a package which sanitizes file name, for testing > purposes, I choose blns > . > > I create a directory, named "blns" and sanitize names from blns and create > those

Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread Ian Lance Taylor
On Fri, Oct 16, 2020 at 2:36 PM nilsocket wrote: > > I was trying to create a package which sanitizes file name, for testing > purposes, I choose blns. > > I create a directory, named "blns" and sanitize names from blns and create > those files in "blns" directory. > > I have tested 516 strings

Re: [go-nuts] net/http TLS issue

2020-10-16 Thread Marcin Romaszewicz
Having a passcode to protect a key file for a production service is pointless, because you move the problem of storing the certificate securely to the problem of storing the passcode securely, so might as well skip the passcode and store the cert securely. Your certificate is probably encoded as a

Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread nilsocket
I was trying to create a package which sanitizes file name, for testing purposes, I choose blns . I create a directory, named "blns" and sanitize names from blns and create those files in "blns" directory. I have tested 516 strings in L

[go-nuts] net/http TLS issue

2020-10-16 Thread Rich
I don't know if we're the only company on the planet that demands the https keys have a passcode to them but I've been having a heck of a time trying to find a good way to serve https using a key with a passphrase. err := ListenAndServeTLS(addr, certFile, keyFile string

Re: [go-nuts] Re: implementing macro in plan 9 assembly

2020-10-16 Thread saurav deshpande
okay, Thank you On Friday, October 16, 2020 at 6:06:34 PM UTC+5:30 iko...@gmail.com wrote: > I think you can use nasm assembly through inline ASM in cgo indirectly... > Go supports writing .s-files written in Go's internal assembly format, > which should be much faster than cgo to compile and

Re: [go-nuts] Re: implementing macro in plan 9 assembly

2020-10-16 Thread Joop Kiefte
I think you can use nasm assembly through inline ASM in cgo indirectly... Go supports writing .s-files written in Go's internal assembly format, which should be much faster than cgo to compile and is probably preferable, but needs a bit of learning. [Joop Kiefte - Chat @ Spike](https://spikeno

Re: [go-nuts] Re: implementing macro in plan 9 assembly

2020-10-16 Thread saurav deshpande
So, is it possible to define functions declared in go and defined in nasm assembly? If yes then can you please share an example. Thank you On Friday, October 16, 2020 at 5:39:33 PM UTC+5:30 iko...@gmail.com wrote: > I don't know how this should actually be done, but remember that the Go > asse

Re: [go-nuts] Re: implementing macro in plan 9 assembly

2020-10-16 Thread Joop Kiefte
I don't know how this should actually be done, but remember that the Go assembly is not actually Plan 9 assembly, it's an abstraction by itself, meant for internal use first and foremost. [Joop Kiefte - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=q9y39) [q9y39] O

[go-nuts] Re: implementing macro in plan 9 assembly

2020-10-16 Thread saurav deshpande
Thank you for the reply. I do not understand, actually I am trying to define the fuctions in plan9 assembly whoes declaration is done in a go file. I want to use macro like the macro in nasm, but couldn't understand how to do it. It would be very helpful if you could give an example. Thank you.

Re: [go-nuts] database/sql works when run it, but with test it complains about unknown driver

2020-10-16 Thread farid sobhany
I was thinking, since I am calling the same function from package main, it will have access to its dependences. I guess that function was using the driver through another controller it was called in. The go mod why really helped. On Thu, Oct 15, 2020, 2:07 PM Joop Kiefte wrote: > You basically