package selector var globalSelector = &warpSelector{} var _ Builder = (*warpSelector)(nil) type warpSelector struct { Builder } func GlobalSelector() Builder { if globalSelector.Build() != nil { return globalSelector } return nil } func SetGlobalSelector(builder Builder) { globalSelector.Builder = builder }