Golang 使用 Functional Options Pattern 传递参数

在需要传递和初始化校验参数列表的时候使用这种方式来传递配置参数.