OLD | NEW |
1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package main | 5 package main |
6 | 6 |
7 //go:generate cproto -desc=printer_test.desc -discovery=false | 7 func min(a uint64, b uint64) uint64 { |
| 8 » if a > b { |
| 9 » » return b |
| 10 » } |
| 11 » return a |
| 12 } |
| 13 func max(a uint64, b uint64) uint64 { |
| 14 » if a < b { |
| 15 » » return b |
| 16 » } |
| 17 » return a |
| 18 } |
OLD | NEW |