vitessio/vitess

Rewrite `flagutil.OptionalFlag` to use generics

已关闭

#11,154 创建于 2022年9月1日

 (8 条评论) (0 个反应) (1 位负责人)Go (2,383 个派生)batch import
Component: CLIType: Internal Cleanupgood first issue

仓库指标

星标
 (21,231 个星标)
PR 合并指标
 (平均合并 3天 21小时) (30 天内合并 134 个 PR)

描述

Now that we have generics, we can stop hand-writing each implementation of flagutil.OptionalFlag for each type we want, instead writing a generic OptionalFlag over any type T, providing a parsing function that has the signature func(string) (T, error)

贡献者指南