On Mon, Feb 19, 2018 at 9:15 PM, 'Tim Hockin' via golang-nuts
> 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
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.