func Checks(checks ...*consul.AgentServiceCheck) Option {
	return func(o *Options) {
		for _, c := range checks {
			o.Checks = append(o.Checks, c)
		}
	}
}
specify consul Agent check args
package registry
import (
	"time"
	consul "github.com/hashicorp/consul/api"
)
type Options struct {
	Addrs   []string
	Timeout time.Duration
	Checks consul.AgentServiceChecks
}
func Addrs(addrs ...string) Option {
	return func(o *Options) {
		o.Addrs = addrs
	}
}
func Timeout(t time.Duration) Option {
	return func(o *Options) {
		o.Timeout = t
	}
}