refactor: specify parameter type in function to improve type safety and clarity (#2317)

This commit is contained in:
YangHgRi 2024-11-26 20:55:49 +08:00 committed by GitHub
parent da9ea67cee
commit 9a46106cc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ type ClusterOptions struct {
MaxIdleConnsPerHost int
}
func Parse(fpath string, configPtr interface{}) error {
func Parse(fpath string, configPtr *Config) error {
var (
tBuf []byte
)