mattn / echo-scaffold

Echo scaffold is CLI to generate scaffolds for the echo framework.
90 stars 5 forks source link

model: illegal character U+005C '\' #4

Closed walkeralencar closed 6 years ago

walkeralencar commented 6 years ago

Follow error:

$ echo-scaffold model user Name:string Login:string
        create  models\user.go
panic: 1:1: illegal character U+005C '\'

goroutine 1 [running]:
github.com/mattn/echo-scaffold/template.(*Builder).Write(0xc04204c9e0, 0x707780, 0xc0420706e8, 0x5e6440, 0x71f4c0)
        C:/Go/src/github.com/mattn/echo-scaffold/template/builder.go:104 +0x303
github.com/mattn/echo-scaffold/template.(*Builder).WriteToPath(0xc04204c9e0, 0xc042052870, 0xe, 0x5e6440, 0x71f4c0)
        C:/Go/src/github.com/mattn/echo-scaffold/template/builder.go:126 +0x163
github.com/mattn/echo-scaffold/command.(*ModelCommand).Execute(0x71f4c0, 0xc04207a020, 0x3, 0x6)
        C:/Go/src/github.com/mattn/echo-scaffold/command/model_command.go:90 +0x3b0
main.main()
        C:/Go/src/github.com/mattn/echo-scaffold/echo-scaffold.go:57 +0x113

After remove '\' from model.go.tmpl at lines: 1, 23, 25, 98, 100, 128 and 132, everything worked well.