examples: Add go:generate directives to generate protcol.go files
This commit is contained in:
parent
11e972c696
commit
52b4c44db3
@ -1,6 +1,6 @@
|
||||
// Package chat implements a simple chat protocol over HOPP. To re-generate the
|
||||
// source files, run this command from within the root directory of the
|
||||
// repository:
|
||||
//
|
||||
// go run ./cmd/hopp-generate examples/chat/protocol.pdl -o examples/chat/protocol/protocol.go
|
||||
// Package chat demonstrates a simple chat protocol.
|
||||
package chat
|
||||
|
||||
// To use this in your own project, replace "go run ../../cmd/hopp-generate"
|
||||
// with just "hopp-generate".
|
||||
//go:generate go run ../../cmd/hopp-generate protocol.pdl -o protocol.go
|
||||
|
||||
6
examples/ping/doc.go
Normal file
6
examples/ping/doc.go
Normal file
@ -0,0 +1,6 @@
|
||||
// Example ping demonstrates a simple ping/pong protocol.
|
||||
package ping
|
||||
|
||||
// To use this in your own project, replace "go run ../../cmd/hopp-generate"
|
||||
// with just "hopp-generate".
|
||||
//go:generate go run ../../cmd/hopp-generate protocol.pdl -o protocol.go
|
||||
Loading…
x
Reference in New Issue
Block a user