Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: common/dirwalk/tests/tools/gendir/util.go

Issue 2054763004: luci-go/common/dirwalk: Code for walking a directory tree efficiently Base URL: https://github.com/luci/luci-go@master
Patch Set: Major rewrite of the code. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+}

Powered by Google App Engine
This is Rietveld 408576698