| Index: common/dirwalk/tests/tools/gendir/util.go
|
| diff --git a/grpc/cmd/rpc/generate.go b/common/dirwalk/tests/tools/gendir/util.go
|
| similarity index 55%
|
| copy from grpc/cmd/rpc/generate.go
|
| copy to common/dirwalk/tests/tools/gendir/util.go
|
| index 478b3b55659be097da7e7bee56410350d232916f..22cd5724c430e49a727aac80c83e8a8923ec5ae8 100644
|
| --- a/grpc/cmd/rpc/generate.go
|
| +++ b/common/dirwalk/tests/tools/gendir/util.go
|
| @@ -4,4 +4,15 @@
|
|
|
| package main
|
|
|
| -//go:generate cproto -desc=printer_test.desc -discovery=false
|
| +func min(a uint64, b uint64) uint64 {
|
| + if a > b {
|
| + return b
|
| + }
|
| + return a
|
| +}
|
| +func max(a uint64, b uint64) uint64 {
|
| + if a < b {
|
| + return b
|
| + }
|
| + return a
|
| +}
|
|
|