这是indexloc提供的服务,不要输入任何密码
Skip to content

Build error: Unknown Escape Sequence #56

@ffleader1

Description

@ffleader1

On Windows, when I try to run this command in cmd revel run "%GOPATH%/github.com/revel/examples/chat", I got:

Revel executing: run a Revel application
WARN  10:07:40    run.go:150: No http.addr specified in the app.conf listening on localhost interface only. This will not allow external access to your application
C:\Users\Administrator\go\src\github.com\revel\examples\chat\app\tmp\main.go
ERROR 10:07:40 watcher.go:270: Build detected an error                   error="Go Compilation Error (in app\\tmp\\main.go:9): unknown escape sequence"

I have no idea what problem I ran into, until I open the main.go file with an ide and got this:
image

Imo, to indicate the file location, the syntax should be github.com/revel/examples/chat/app/tmp/run", yet some how revel just change it to "github.com\revel\examples\chat/app/tmp/run" all the time, rendering the "Unknown escape sequence" error.

Anyone has any idea how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions