dcu / gin-scaffold

Gin scaffold is CLI to generate scaffolds for the gin gonic framework.
63 stars 11 forks source link

Support Windows #19

Closed mattn closed 7 years ago

shinriyo commented 7 years ago

LGTM

:+1: :-1:

LGTM. Than you for pull request.

shinriyo commented 7 years ago
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x153ce0, 0xc4200100e0)
    /usr/local/opt/go/libexec/src/runtime/panic.go:500 +0x1a1
github.com/dcu/gin-scaffold/command.(*InitCommand).Execute(0xc420014340, 0xc42000a140, 0x1, 0x1)
    /Users/shinriyo/src/github.com/dcu/gin-scaffold/command/init_command.go:57 +0x262
main.main()
    /Users/shinriyo/src/github.com/dcu/gin-scaffold/gin-scaffold.go:61 +0x14f

An error occurred

shinriyo commented 7 years ago

In my environment, I just minus one and resolved but..

root = wd[len(p+"/src/")-1:]
mattn commented 7 years ago

Okay, will fix in soon.

mattn commented 7 years ago

Hmm, can't reproduce. could you please show me how to reproduce?

mattn commented 7 years ago

Ah, I figure out it. ignore this.

shinriyo commented 7 years ago

could you please show me how to reproduce?

When, I did init command.

Ah, I figure out it. ignore this.

Ok. I will check your pull-request. Thank you.