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

Side by Side Diff: go/src/infra/tools/cr/lib/terminal/terminal_test.go

Issue 1929153002: Add beginnings of new cr command (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix windows arguments Created 4 years, 6 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package terminal
6
7 func ExamplePrint() {
8 Print("This is a string.")
9 Print("These are the numbers %d and %d.", 1, 2)
10 // Output:
11 // This is a string.
12 // These are the numbers 1 and 2.
13 }
14
15 func ExampleDebug() {
16 Debug("This will not be printed.")
17 ShowDebug = true
18 Debug("This will be printed.")
19 // Output:
20 // This will be printed.
21 }
OLDNEW
« no previous file with comments | « go/src/infra/tools/cr/lib/terminal/terminal.infra_testing ('k') | go/src/infra/tools/cr/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698