gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/util/http/options.go (about) 1 package http 2 3 import ( 4 "gitee.com/liuxuezhan/go-micro-v1.18.0/registry" 5 ) 6 7 type Options struct { 8 Registry registry.Registry 9 } 10 11 type Option func(*Options) 12 13 func WithRegistry(r registry.Registry) Option { 14 return func(o *Options) { 15 o.Registry = r 16 } 17 }