you shouldn't have to care whether it's "/" or "\". use os.PathSeparator to ensure that your code is correct on all systems.
On Fri, Sep 23, 2016 at 9:54 AM, Ally Dale <vipa...@gmail.com> wrote: > Golang std library such as path.Split() all suppose path is separated with > "/". > But os.Getwd() get a path separated with "\" such as "D:\temp" in windows. > That does troubled gophers to deal with os.Getwd() return path by golang std > library. > So could go authers fix this case to let os.Getwd() return path just like > "D:/temp" in windows? > > -- > 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.