# chatapp **Repository Path**: travisturing/chatapp ## Basic Information - **Project Name**: chatapp - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-28 - **Last Updated**: 2024-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # golang backend inspired by [golang-clean-web-api](https://github.com/naeemaei/golang-clean-web-api) ## Usage ``` $ cd src $ go run . ``` ## minimal - get: GET with parameter * 使用`ctx.Param()`, 处理`/route/path/:param` * 使用`ctx.Query()`, 处理`/route/path/query?k1=k1&v1=v1` - post: POST with json form * 使用`ctx.ShouldBindJSON(&v)`和反射 - put: PUT with json form - delete: DELETE with parameter ## websocket > https://zhuanlan.zhihu.com/p/597185322 ## database - get * object marshal to json - set ## cache cache应该如何使用, 用在哪里 ## golang泛型