Skip to content

Commit

Permalink
feat: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb committed Jun 16, 2022
1 parent 5481865 commit 9d4a885
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrator/index.go
Expand Up @@ -12,12 +12,12 @@ type Index struct {
OptionValue string
}

// Table returns the table name of the index.
// Table return the table name of the index.
func (idx Index) Table() string {
return idx.TableName
}

// Name returns the name of the index.
// Name return the name of the index.
func (idx Index) Name() string {
return idx.NameValue
}
Expand All @@ -32,7 +32,7 @@ func (idx Index) PrimaryKey() (isPrimaryKey bool, ok bool) {
return idx.PrimaryKeyValue.Bool, idx.PrimaryKeyValue.Valid
}

// Unique reports whether the index is unique or not.
// Unique returns whether the index is unique or not.
func (idx Index) Unique() (unique bool, ok bool) {
return idx.UniqueValue.Bool, idx.UniqueValue.Valid

Expand Down

0 comments on commit 9d4a885

Please sign in to comment.