mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:30:55 +00:00
Merge pull request #1267 from wallclockbuilder/develop
Fix for #1256. Indent the code sample lines properly.
This commit is contained in:
commit
160d82d1d2
23
README.md
23
README.md
@ -7,10 +7,31 @@ beego is an open-source, high-performance, modular, full-stack web framework.
|
|||||||
|
|
||||||
More info [beego.me](http://beego.me)
|
More info [beego.me](http://beego.me)
|
||||||
|
|
||||||
## Installation
|
##Quick Start
|
||||||
|
######Download and install
|
||||||
|
|
||||||
go get github.com/astaxie/beego
|
go get github.com/astaxie/beego
|
||||||
|
|
||||||
|
######Create file `hello.go`
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "github.com/astaxie/beego"
|
||||||
|
|
||||||
|
func main(){
|
||||||
|
beego.Run()
|
||||||
|
}
|
||||||
|
```
|
||||||
|
######Build and run
|
||||||
|
```bash
|
||||||
|
go build hello.go
|
||||||
|
./hello
|
||||||
|
```
|
||||||
|
######Congratulations!
|
||||||
|
You just built your first beego app.
|
||||||
|
Open your browser and visit `http://localhost:8000`.
|
||||||
|
Please see [Documentation](http://beego.me/docs) for more.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* RESTful support
|
* RESTful support
|
||||||
|
10
beego.go
10
beego.go
@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
// beego is an open-source, high-performance, modular, full-stack web framework
|
// beego is an open-source, high-performance, modular, full-stack web framework
|
||||||
//
|
//
|
||||||
// package main
|
// package main
|
||||||
//
|
//
|
||||||
// import "github.com/astaxie/beego"
|
// import "github.com/astaxie/beego"
|
||||||
//
|
//
|
||||||
// func main() {
|
// func main() {
|
||||||
// beego.Run()
|
// beego.Run()
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// more infomation: http://beego.me
|
// more infomation: http://beego.me
|
||||||
package beego
|
package beego
|
||||||
|
Loading…
Reference in New Issue
Block a user