Re: [go-nuts] Rel in path package

2016-07-13 Thread Anmol Sethi
Thanks Ian! > On Jul 13, 2016, at 10:23 AM, Ian Lance Taylor wrote: > > On Wed, Jul 13, 2016 at 2:43 AM, Anmol Sethi wrote: >> Right here: >> https://github.com/nsf/gocode/blob/f535dc686130fcc7b942c504ce5903222a205ca3/autocompletecontext.go#L254 >> >> I have to annoyingly use filepath.ToSlash

Re: [go-nuts] Rel in path package

2016-07-13 Thread Anmol Sethi
fixed here: https://github.com/nsf/gocode/pull/361/files Not sure what I was thinking when I wrote that code. My bad. > On Jul 13, 2016, at 10:23 AM, Ian Lance Taylor wrote: > > On Wed, Jul 13, 2016 at 2:43 AM, Anmol Sethi wrote: >> Right here: >> https://github.com/nsf/gocode/blob/f535dc68613

Re: [go-nuts] Rel in path package

2016-07-13 Thread Ian Lance Taylor
On Wed, Jul 13, 2016 at 2:43 AM, Anmol Sethi wrote: > Right here: > https://github.com/nsf/gocode/blob/f535dc686130fcc7b942c504ce5903222a205ca3/autocompletecontext.go#L254 > > I have to annoyingly use filepath.ToSlash after just in case the user was on > windows. I don't know what that code is

Re: [go-nuts] Rel in path package

2016-07-13 Thread Anmol Sethi
Right here: https://github.com/nsf/gocode/blob/f535dc686130fcc7b942c504ce5903222a205ca3/autocompletecontext.go#L254 I have to annoyingly use filepath.ToSlash after just in case the user was on windows. > On Jul 12, 2016, at 10:58 PM, Ian Lance Taylor wrote: > > On Tue, Jul 12, 2016 at 5:17 PM,

Re: [go-nuts] Rel in path package

2016-07-12 Thread Ian Lance Taylor
On Tue, Jul 12, 2016 at 5:17 PM, Anmol Sethi wrote: > Why is there no function in the path package to get relative paths, like > filepath.Rel? When would you want to use it? Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe f

[go-nuts] Rel in path package

2016-07-12 Thread Anmol Sethi
Why is there no function in the path package to get relative paths, like filepath.Rel? -- 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...@go