Skip to content

Commit

Permalink
增加day38-41项目实战
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyhan1314 committed Aug 5, 2019
1 parent 4f19443 commit 4a1e11b
Show file tree
Hide file tree
Showing 494 changed files with 29,920 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
appname = myblog
httpport = 8080
runmode = dev

#mysql配置
driverName = mysql
mysqluser = root
mysqlpwd = yu271400
host = 127.0.0.1
port = 3306
dbname = myblog


Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package controllers

import (
"github.com/astaxie/beego"
)

type MainController struct {
beego.Controller
}

func (c *MainController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "index.tpl"
}
Loading

0 comments on commit 4a1e11b

Please sign in to comment.