Re: [go-nuts] How to get request url scheme?

2018-11-24 Thread Anik Hasibul
sibul From: Robert Engels Sent: Sunday, November 25, 2018 10:20:46 AM To: Anik Hasibul Cc: golang-nuts Subject: Re: [go-nuts] How to get request url scheme? That should be it... file a bug > On Nov 24, 2018, at 9:21 PM, Anik Hasibul wrote: > > Hi there!

[go-nuts] How to get request url scheme?

2018-11-24 Thread Anik Hasibul
Hi there! I am working on a web application. And I need to get the scheme of the request url. I tried `req.URL.Scheme` it returned empty string. But my expectation was `http` or `https` Any idea to get that? -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Escape slashes from file path

2018-10-20 Thread Anik Hasibul
Yes! Just tried. Thanks for giving me the idea about kicking the slashes from file name. From: golang-nuts@googlegroups.com on behalf of Tamás Gulácsi Sent: Sunday, October 21, 2018 12:12:13 AM To: golang-nuts Subject: Re: [go-nuts] Escape slashes from file path

Re: [go-nuts] Escape slashes from file path

2018-10-20 Thread Anik Hasibul
I need the whole name :( the slash isn't separating the directory. It's "artist/track.mp3" From: golang-nuts@googlegroups.com on behalf of Tamás Gulácsi Sent: Sunday, October 21, 2018 12:00:08 AM To: golang-nuts Subject: [go-nuts] Escape slashes from file path

[go-nuts] Escape slashes from file path

2018-10-20 Thread Anik Hasibul
``` { "name":"foo/bar.mp3", "url":"https://foobar.com/bar.mp3"; } ``` I wanna save the song after fetching the url. When I am going to save the file to the `name` value it says `open: foo/bar.mp3 no such`, because the directory `foo` doesn't exist. I wanna save it in the current dir

Re: [go-nuts] Listen by multiple goroutines via channels

2018-09-02 Thread Anik Hasibul
Can you please provide an example? I am new to golang. From: Mhd Shulhan Sent: Monday, September 3, 2018 12:17:57 PM To: anik3...@gmail.com Cc: golang-nuts Subject: Re: [go-nuts] Listen by multiple goroutines via channels On Mon, 3 Sep 2018, 13:03 , mailto:anik3