tag fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
5ecc4986dd
commit
c6caa0d3ac
5
ast.go
5
ast.go
@ -44,7 +44,10 @@ func (g *Generator) astGenerate(plugin *protogen.Plugin) error {
|
|||||||
if !ok {
|
if !ok {
|
||||||
mp = make(map[string]map[string]*structtag.Tags)
|
mp = make(map[string]map[string]*structtag.Tags)
|
||||||
}
|
}
|
||||||
nmp := make(map[string]*structtag.Tags)
|
nmp, ok := mp[message.GoIdent.GoName]
|
||||||
|
if !ok {
|
||||||
|
nmp = make(map[string]*structtag.Tags)
|
||||||
|
}
|
||||||
tags, err := structtag.Parse(opts.(string))
|
tags, err := structtag.Parse(opts.(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user