Zwei

Results 15 comments of Zwei

go1.25 rc1 已经将 `json/v2` 作为实验特性了,应该会在 go1.26 转正。 框架在重构 gjson 时,会考虑这一点吗?

order is important, look at the `show goal`, `HEAD` must be point to `branch two`.

> Sorry but I do not think it a good feature and will not be considered >> [gqcn](https://github.com/gqcn) commented [on Oct 14, 2020](https://github.com/gogf/gf/issues/943#issuecomment-708390027) related issue #943 #475 #779

目前不支持的。 不过你可以新建一个文件,比如 `user_json.go` 为 `User` 结构体实现 `MarshalJSON` 方法,用于屏蔽敏感字段 ```go func (u User) MarshalJSON() ([]byte, error) { type NewUser User newUser := NewUser(u) newUser.Password = "" return json.Marshal(newUser) } ``` 这种实现方式只会影响...

向量类型并不是标准SQL里支持的类型,应该为向量类型映射为专门类型。 - 你可以自己创建类型,然后为其实现 `sql.Scan` 和 `sql/driver.Value` 方法。 - 或使用第三方库:[pgvector-go](https://github.com/pgvector/pgvector-go)