Skip to content

Commit

Permalink
加上slice限制
Browse files Browse the repository at this point in the history
  • Loading branch information
majiangde committed May 11, 2020
1 parent 4be55e1 commit d2a2134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protoc-gen-go/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,10 @@ func (g *Generator) generateMessage(message *Descriptor) {
tag += fmt.Sprintf(" xorm:%q", "json")
}

if isRepeated(field) == true {
mapFlag = true
}

if mapFlag == true {
tag += " redis:-"
} else {
Expand Down

0 comments on commit d2a2134

Please sign in to comment.