Results 19 comments of george fox

GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang. https://github.com/gogf/gf

不知道你要的是不是这个:https://goframe.org/pages/viewpage.action?pageId=30736904 ```go s := g.Server() s.Group("/api.v2", func(group *ghttp.RouterGroup) { group.Middleware(MiddlewareCORS) group.Bind( new(Hello), ) }) ```

1、可以自定一个获取title的函数,参考https://goframe.org/pages/viewpage.action?pageId=1114228 2、可以自己实现个middlewate里面编写注入参数逻辑就可以了 ` // 将自定义的上下文对象传递到模板变量中使用 r.Assigns(g.Map{ "Context": customCtx, })`

mac m1 execute syscall.Mprotect error: panic: permission denied [recovered] ```go err := syscall.Mprotect(page, syscall.PROT_READ|syscall.PROT_WRITE|syscall.PROT_EXEC) if err != nil { panic(err) } ```

> > set env GOARCH=amd64 > > 好用,解决问题。 nice可以运行了,但是貌似就无法debug代码了~!~

日志: ```bash D:\workspaces\go_workspaces\github\gfstudy\02.hello\web>gf run main.go 2020-03-29 23:08:36.346 build: main.go 2020-03-29 23:08:36.359 go build -o C:\Users\FLY的~1\AppData\Local\Temp\gf-cli\main.exe main.go 2020-03-29 23:08:39.966 go file changes: "D:\\workspaces\\go_workspaces\\github\\gfstudy\\02.hello\\web\\main.go": WRITE 2020-03-29 23:08:39.966 build: main.go 2020-03-29 23:08:39.966 go...

经排查: ![image](https://user-images.githubusercontent.com/3090081/77853162-3fe3e100-7215-11ea-91ca-7fa2f9758088.png) kill方法没有报错,但是进程还是没有杀掉

FileManager add方法修改下,可以参考 ```bash if (getConfig("upload-size") != null) { maxSize = Integer.parseInt(getConfig("upload-size")); if (maxSize != 0 && item.getSize() > (maxSize * 1024 * 1024)) { this.error(sprintf(lang("UPLOAD_FILES_SMALLER_THAN"), maxSize + "Mb")); error =...

这个是基于gf的token实现;如果你用java,现在有对应的sdk; 1、你可以根据源码实现一套java的; 2、使用go搭建基于gtoken搭建一个token验证,生成服务;

应该是版本问题~很久没维护了,后面抽时间测测