Debian Codegraph @

proto/doc.go

raw
1 // Package proto contains protocol buffers that are exchanged between the client
2 // and server.
3 //
4 // # Generating Protocol Buffer Code
5 //
6 // Anytime the Protocol Buffer definitions change, the generated Go code must be
7 // regenerated. This can be done with "go generate". Just run:
8 //
9 // go generate ./...
10 //
11 // Upstream documentation:
12 // https://developers.google.com/protocol-buffers/docs/reference/go-generated
13 //
14 // # Code Generation Dependencies
15 //
16 // To generate the Go code, your system must have "protoc" installed. See:
17 // https://github.com/protocolbuffers/protobuf#protocol-compiler-installation
18 //
19 // The "protoc-gen-go" tool must also be installed. To install it, run:
20 //
21 // go install google.golang.org/protobuf/cmd/protoc-gen-go
22 //
23 // If you see a 'protoc-gen-go: program not found or is not executable' error
24 // for the 'go generate' command, run the following:
25 //
26 // echo 'export PATH=$PATH:$GOPATH/bin' >> $HOME/.bashrc
27 // source $HOME/.bashrc
28 package proto
29
30 //go:generate ./gen_attest.sh
31 //go:generate protoc --go_out=. --go_opt=module=github.com/google/go-tpm-tools/proto tpm.proto