Re: [go-nuts] Re: Is there a bug in path.Dir?

2016-07-15 Thread 18126523585
OK, i get it

在 2016年6月21日星期二 UTC+8上午9:46:09,Ian Lance Taylor写道:
>
> On Mon, Jun 20, 2016 at 5:59 PM,  <18126...@163.com > wrote: 
> > Package "filepath" works well, but the "path" package is not recommended 
> ? 
>
> The path package is for slash-separated packages such as appear in URLs. 
>
> The path/filepath package is for paths in the file system. 
>
> Ian 
>
>
> > 在 2016年6月20日星期一 UTC+8下午1:40:55,徐新华写道: 
> >> 
> >> Package path implements utility routines for manipulating 
> >> slash-separated(/) paths. 
> >> 
> >> So, you should use "path/filepath" 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/optout.


Re: [go-nuts] Re: Is there a bug in path.Dir?

2016-06-20 Thread Ian Lance Taylor
On Mon, Jun 20, 2016 at 5:59 PM,  <18126523...@163.com> wrote:
> Package "filepath" works well, but the "path" package is not recommended ?

The path package is for slash-separated packages such as appear in URLs.

The path/filepath package is for paths in the file system.

Ian


> 在 2016年6月20日星期一 UTC+8下午1:40:55,徐新华写道:
>>
>> Package path implements utility routines for manipulating
>> slash-separated(/) paths.
>>
>> So, you should use "path/filepath"
>
> --
> 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/optout.

-- 
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/optout.


[go-nuts] Re: Is there a bug in path.Dir?

2016-06-20 Thread 18126523585
Package "filepath" works well, but the "path" package is not recommended ?

在 2016年6月20日星期一 UTC+8下午1:40:55,徐新华写道:
>
> Package path implements utility routines for manipulating 
> slash-separated(/) paths.
>
> So, you should use "path/filepath"
>

-- 
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/optout.