Skip to content

Conversation

sulthonzh
Copy link

InstantEnsureIndex


for k, v := range indexMap {
fields := strings.Split(k, "_")
index := mgo.Index{}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call to package mgo is failing the build. Type Index already exists in the same package.

@vivace-io
Copy link

Naming feels rather confusing, doesn't seem to accurately describe what the function does. Might want to consider another name?

@vivace-io vivace-io mentioned this pull request Jul 19, 2017
@hexadecy
Copy link

I suggest EnsureIndexFromStruct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants