I would like to request generic support in the official Kratos config package. Currently, when retrieving configuration values, we need to manually convert types after retrieval. With generics now available in Go, it would be more convenient if the config package could support generics to directly return the desired typed values.
Kratos 官方配置包中是否可以添加泛型支持?
目前获取配置值时,我们需要在获取后手动进行类型转换。既然 Go 已经支持泛型,如果配置包能够支持泛型来直接返回所需的类型化值,将会更加方便。