Tech
[OpenAI] 重新启用 gskctl, 一个基于 dsl 的代码生成工具
为了确保写出来的代码一定是高效稳定的,我重新启用 gskctl 了。
用 AI 写模板,用它生成代码,好像还不错。
type UserRepository interface {
// @QueryRow("select * from User where Id = :id")
GetUser(ctx context.Context, id uint64) (User, error)
// @Query("select U.Id, U.Name, T.Name as TeamName from User as U left join Team as T where U.Active is true and (U.Name like :name or T.Name is null) order by U.Name limit :limit offset :offset")
ListUsers(ctx context.Context, name string, limit int, offset int) ([]ListUsersRow, error)
// @Cr...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX