vitessio/vitess

Rewrite `flagutil.OptionalFlag` to use generics

Fechada

#11.154 aberto em 1 de set. de 2022

 (8 comentários) (0 reação) (1 responsável)Go (2.383 forks)batch import
Component: CLIType: Internal Cleanupgood first issue

Métricas do repositório

Stars
 (21.242 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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)

Guia do colaborador