mirror of
https://github.com/arkadiyt/protodump.git
synced 2026-10-23 18:49:38 +02:00
Some refactoring
This commit is contained in:
1 parent
6fd369cb85
commit
6e610acbaa
10 files changed
+14
-16
No files matched your search
@@ -8,8 +8,7 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/arkadiyt/protodump/pkg/proto"
|
||||
"github.com/arkadiyt/protodump/pkg/scan"
|
||||
"github.com/arkadiyt/protodump/pkg/protodump"
|
||||
)
|
||||
|
||||
var debug bool
|
||||
@@ -38,13 +37,13 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
results, err := scan.ScanFile(*file)
|
||||
results, err := protodump.ScanFile(*file)
|
||||
if err != nil {
|
||||
log.Fatalf("Got error scanning: %v\n", err)
|
||||
}
|
||||
|
||||
for _, result := range results {
|
||||
definition, err := proto.NewFromBytes(result)
|
||||
definition, err := protodump.NewFromBytes(result)
|
||||
if err != nil {
|
||||
Debug("Got error parsing definition: %v\n", err)
|
||||
} else {
|
||||
Reference in new issue
Block a user