Khan/genqlient

Make it possible to ask for a *[]T

Open

#16 创建于 2021年4月22日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (141 fork)github user discovery
enhancementhelp wantedneeds use cases

仓库指标

Star
 (1,310 star)
PR 合并指标
 (PR 指标待抓取)

描述

If you put pointer: true on a list-field, you get []*T (or [][]*T, or...) which is probably what you wanted (so you can represent an required list of optional items, for example, but not the only option. If anyone finds a reason to want *[]T, or for that matter *[][]*[]T, we can figure out a syntax for it; it's easy enough to do technically. (Although it won't be totally trivial if T is an interface.)

贡献者指南