//GetCollectionOptions is the only way I have figured for there to be a struct that contains the options and be used.
// This cannot be the best way to do this.
GetCollectionOptions is the only way I have figured for there to be a struct that contains the options and be used.
This cannot be the best way to do this.
// GetCollectionOptions is the only way I have figured for there to be a struct that contains the options and be used . // This cannot be the best way to do this .
func (c collections) GetCollectionOptions(name string) *options.CreateCollectionOptions {
	switch name {
	case "users":
		return c.Users
	case "repositories":
		return c.Repos
	case "stats":
		return c.Stats
	default:
		return nil
	}
}
func ( c collections ) GetCollectionOptions ( name string ) * options . CreateCollectionOptions { switch name { case " " : return c . Users case " " : return c . Repos case " " : return c . Stats default : return nil } }
GetCollectionOptions is the only way I have figured for there to be a struct that contains the options and be used.
GetCollectionOptions is the only way I have figured for there to be a struct that contains the options and be used .