dcu / gin-scaffold Goto Github PK
View Code? Open in Web Editor NEWGin scaffold is CLI to generate scaffolds for the gin gonic framework.
Gin scaffold is CLI to generate scaffolds for the gin gonic framework.
When I run the command "git-scaffold init go-memorize" I get the following error:
panic: open /go/src/github.com/dcu/gin-scaffold/template/data/main.go.tmpl: no such file or directory
goroutine 1 [running]:
github.com/dcu/gin-scaffold/template.LoadTemplateFromFile({0xc00007c1c0?, 0x4be710?})
/go/pkg/mod/github.com/dcu/[email protected]/template/loader.go:18 +0x72
github.com/dcu/gin-scaffold/template.(*Builder).Template(0xc000052300)
/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:103 +0x2d
github.com/dcu/gin-scaffold/template.(*Builder).Write(0xc00007a140?, {0x594028, 0xc0000126d0}, {0x5426c0, 0xc000070140})
/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:110 +0x2d
github.com/dcu/gin-scaffold/template.(*Builder).WriteToPath(0xc000043da8?, {0xc00007a140, 0x1e}, {0x5426c0, 0xc000070140})
/go/pkg/mod/github.com/dcu/[email protected]/template/builder.go:130 +0x11f
github.com/dcu/gin-scaffold/command.(*InitCommand).installFile(0xc000070140, {0x0, 0x0}, {0x557329?, 0x0?}, {0xc0000185b0, 0xe})
/go/pkg/mod/github.com/dcu/[email protected]/command/init_command.go:90 +0xd9
github.com/dcu/gin-scaffold/command.(*InitCommand).Execute(0xc000070140, {0xc0000141a0?, 0x7ffdc3fdaeda?, 0x4?})
/go/pkg/mod/github.com/dcu/[email protected]/command/init_command.go:72 +0x308
main.main()
/go/pkg/mod/github.com/dcu/[email protected]/gin-scaffold.go:61 +0x196
I tried this on the following systems:
It supports mongodb
and mgo
only.
At least, I'd like to support MySQL, sqlite and PostgreSQL.
$ go get github.com/dcu/gin-scaffold go: missing Mercurial command. See https://golang.org/s/gogetcmd
package bitbucket.org/pkg/inflect: exec: "hg": executable file not found in %PAT H%
// Setup sets up all controllers.
func Setup(router *gin.Engine) {
users := UsersController{Router: router}
users.Setup()
users := UsersController{Router: router} # remove
users.Setup() # remove
}
// vi:syntax=go
I hope gin-scaffold. And, I hope an organization account for the project.
I hope like Rails templates.
As a matter of greed, React
and Angular2 templates as option.
I will write HTTP Methods like GET
, POST
, DELETE
, PUT
in README
Database type supports int and string.
Support them
bool
string
int int8 int16 int32 int64
uint uint8 uint16 uint32 uint64 uintptr
byte
rune
float32 float64
complex64 complex128
:binary
:boolean
:date
:datetime
:decimal
:float
:integer
:primary_key
:string
:text
:time
:timestamp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.