Skip to content

Commit 6204512

Browse files
committed
Use proteus:",101" notation
Thanks to dennwc for advice it may be better to use proteus:",101" notation - it will be easier to extend later.
1 parent 482a696 commit 6204512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scanner/scanner.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ func isIgnoredField(f *types.Var, tags []string) bool {
393393
}
394394

395395
func getProtoID(f *types.Var, tags []string) int {
396-
if len(tags) == 0 {
396+
if len(tags) < 2 {
397397
return 0
398398
}
399-
i, err := strconv.Atoi(tags[0])
399+
i, err := strconv.Atoi(tags[1])
400400
if err != nil {
401401
return 0
402402
}

0 commit comments

Comments
 (0)