Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 487322168
  • Loading branch information
protobuf-github-bot authored and mcy committed Nov 9, 2022
1 parent 7062517 commit 8e7a6aa
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 332 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ the `protoscope` tool, which can be installed with the Go tool via
go install github.com/protocolbuffers/protoscope/cmd/protoscope...@latest
```

`go install` will place the binary in the `GOBIN` directory, which is
`~/go/bin` by default. See the [docs for `go install`](https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies) for more details.
`go install` will place the binary in the `GOBIN` directory, which is `~/go/bin`
by default. See the
[docs for `go install`](https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies)
for more details.

For the language specification and basic examples, see
[language.txt](/language.txt). Example disassembly can be found under
Expand Down
5 changes: 3 additions & 2 deletions cmd/protoscope/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ import (

_ "embed"

descpb "google.golang.org/protobuf/types/descriptorpb"

"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protodesc"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/types/descriptorpb"

"github.com/protocolbuffers/protoscope"
)
Expand Down Expand Up @@ -107,7 +108,7 @@ func Main() error {
return err
}

var fds descriptorpb.FileDescriptorSet
var fds descpb.FileDescriptorSet
if err := proto.Unmarshal(descBytes, &fds); err != nil {
return err
}
Expand Down
Loading

0 comments on commit 8e7a6aa

Please sign in to comment.