kaylee

Results 5 comments of kaylee

```go depts := g.GenerateModel("depts", gen.FieldRelate(field.Many2Many, "Managers", g.GenerateModel("users"), &field.RelateConfig{ RelateSlice: true, GORMTag: "many2many:dept_managers", })) users := g.GenerateModel("users", gen.FieldRelate(field.Many2Many, "ManagerDepts", depts, &field.RelateConfig{ RelateSlice: true, GORMTag: "many2many:dept_managers", })) g.ApplyBasic(depts, users) ``` 目前我是使用这种方式来实现many2many, 需要注意中间表的字段名的设计,...

I don't know how the `EmbedFileSystem` structure implements the `static.ServeFileSystem` interface, according to my test as below, I didn't find a problem, hopefully this code snippet will help you. My...

> English please. @blackd Thanks for reply When I open the inventory and left-click on an item, I can't pick it up to hover over the mouse. However, if I...

@hackersean [OmarFaruk-0x01](https://github.com/OmarFaruk-0x01)'s code works! ```golang func setupRouter() *gin.Engine { r := gin.Default() r.GET("/ping", func(c *gin.Context) { c.String(http.StatusOK, "pong") }) r.Use(func(c *gin.Context) { // Apply the Cache-Control header to the static...