On Mon, Feb 19, 2018 at 9:15 PM, 'Tim Hockin' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
> Pinging this topic - does anyone know?
> On Fri, Nov 10, 2017 at 10:30 AM, Tim Hockin <thoc...@google.com> wrote:
>> Is it valid to say `import "github.com\foo\bar" (windows path
>> separators) or must it be "github.com/foo/bar"?  I couldn't find a
>> canonical answer to this.

The language spec says that an implementation is permitted but not
required to forbid the backslash character in an import path
(https://golang.org/ref/spec#Import_declarations).  The gc compiler
does in fact refuse to accept a backslash character in an import path.
So in practice you need to use forward slashes.


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.

Reply via email to