default.go models.go service.go service1.go service2.go ...
分类:
其他好文 时间:
2018-01-28 13:56:11
阅读次数:
1562
Beego框架学习 layout的使用 在管理系统中,管理菜单的界面是固定的,会变化的只是中间的部分。我就在想,是不是跟angular的“组件模块的router outlet一样”每次只用修改中间的内容部分,菜单和导航栏不变。 果不其然,beego框架也是支持layout的设计。 首先,在views ...
分类:
其他好文 时间:
2018-01-26 15:52:10
阅读次数:
2787
conf/app.conf controllersmy/attach.go controllersmy/default.go controllersmy/login.go controllersmy/topic.go controllersmy/welcome.go model/models.go ...
分类:
Web程序 时间:
2018-01-03 11:41:15
阅读次数:
260
what is cookie? cookie是存储在客户端的,用于标识客户身份的! what is session session 是存储在服务端,也是用于客户身份标识,用于跟踪用户会话。 BeeGo session保存方式 Beego内置了session模块,目前session模块支持的后端引擎包 ...
分类:
其他好文 时间:
2017-12-28 21:47:34
阅读次数:
190
app.conf appname = blog1 httpport = 8080 runmode = dev controllersmy package controllersmy //跟外面的包名一致 import ( "github.com/astaxie/beego" ) type MainC... ...
分类:
Web程序 时间:
2017-12-23 18:57:51
阅读次数:
203
package main //gohttp底层实现,通过gohttp不是通过beego实现的输出 // import ( "io" "log" "net/http" ) func main() { //设置路由 http.HandleFunc("/", sayHello) err := http.L... ...
分类:
Web程序 时间:
2017-12-22 18:36:14
阅读次数:
250
问题: Method Not Allowed get方法首字母写成了小写,找不到方法 string到int int,err:=strconv.Atoi(string) string到int64 int64, err := strconv.ParseInt(string, 10, 64) int到st ...
分类:
其他好文 时间:
2017-12-19 15:08:47
阅读次数:
149
1 package main 2 3 import ( 4 "fmt" 5 "gitee.com/ha666/golibs" 6 "github.com/astaxie/beego/logs" 7 _ "ha666/initial" 8 "math" 9 "time" 10 ) 11 12 func... ...
分类:
其他好文 时间:
2017-11-13 19:58:11
阅读次数:
109
一、解决:cc1.exe: sorry, unimplemented: 64-bit mode not compiled in: 参考链接:http://blog.csdn.net/mecho/article/details/24305369 ...