# keframe **Repository Path**: kingeasts/keframe ## Basic Information - **Project Name**: keframe - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-08 - **Last Updated**: 2022-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # keframe ## 初始化使用 ``` app := kef.New() app.Module("admin") { app.AddRoute("demo", func(ctx *kef.Context) { params := ctx.Params[0] ctx.Success(kef.Data{ "hello": params, }) }) } if err := app.Start(":9020"); err != nil { panic(err) } ``` 即可使用 ```curl -X POST -d '{"method":"demo","args":["world"]}' http://localhost:9020/admin``` 即可看到返回的 ``` { "success": true, "code": 0, "error": "", "result": { "hello": "world" } } ```