refactor: specify parameter type in function to improve type safety and clarity (#2317)
This commit is contained in:
parent
da9ea67cee
commit
9a46106cc0
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue