Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdHproseapp = &commands.Command{ UsageLine: "hprose [appname]", Short: "Creates an RPC application based on Hprose and radiant frameworks", Long: ` The command 'hprose' creates an RPC application based on both radiant and Hprose (http://hprose.com/). {{"To scaffold out your application, use:"|bold}} $ radical hprose [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] [-gopath=false] [-radiant=v1.12.3] If 'conn' is empty, the command will generate a sample application. Otherwise the command will connect to your database and generate models based on the existing tables. The command 'hprose' creates a folder named [appname] with the following structure: ├── main.go ├── go.mod ├── {{"conf"|foldername}} │ └── app.conf └── {{"models"|foldername}} └── object.go └── user.go `, PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() }, Run: createhprose, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.