diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2021-06-09 17:33:52 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-09 17:36:51 -0700 |
commit | 3fb646ed10b8ca425450132dd52b4671d60dcd7a (patch) | |
tree | 4a6aad9ba6ed7e36d645e4639e471b32a721daac | |
parent | 1ca981f50f0b2ad273bbcb870bca21c4b1264504 (diff) |
Rename go files that contain "main" function to main.go.
This is a good Go convention that we should follow.
PiperOrigin-RevId: 378538679
-rw-r--r-- | test/cmd/test_app/BUILD | 2 | ||||
-rw-r--r-- | test/cmd/test_app/main.go (renamed from test/cmd/test_app/test_app.go) | 0 | ||||
-rw-r--r-- | test/runner/BUILD | 2 | ||||
-rw-r--r-- | test/runner/main.go (renamed from test/runner/runner.go) | 0 | ||||
-rw-r--r-- | tools/go_generics/BUILD | 2 | ||||
-rw-r--r-- | tools/go_generics/main.go (renamed from tools/go_generics/generics.go) | 0 |
6 files changed, 3 insertions, 3 deletions
diff --git a/test/cmd/test_app/BUILD b/test/cmd/test_app/BUILD index 98ba5a3d9..7b8b23b4d 100644 --- a/test/cmd/test_app/BUILD +++ b/test/cmd/test_app/BUILD @@ -7,7 +7,7 @@ go_binary( testonly = 1, srcs = [ "fds.go", - "test_app.go", + "main.go", ], pure = True, visibility = ["//runsc/container:__pkg__"], diff --git a/test/cmd/test_app/test_app.go b/test/cmd/test_app/main.go index 2d08ce2db..2d08ce2db 100644 --- a/test/cmd/test_app/test_app.go +++ b/test/cmd/test_app/main.go diff --git a/test/runner/BUILD b/test/runner/BUILD index 582d2946d..f9f788726 100644 --- a/test/runner/BUILD +++ b/test/runner/BUILD @@ -5,7 +5,7 @@ package(licenses = ["notice"]) go_binary( name = "runner", testonly = 1, - srcs = ["runner.go"], + srcs = ["main.go"], data = [ "//runsc", ], diff --git a/test/runner/runner.go b/test/runner/main.go index 7e8e88ba2..7e8e88ba2 100644 --- a/test/runner/runner.go +++ b/test/runner/main.go diff --git a/tools/go_generics/BUILD b/tools/go_generics/BUILD index 807c08ead..78b636130 100644 --- a/tools/go_generics/BUILD +++ b/tools/go_generics/BUILD @@ -5,8 +5,8 @@ package(licenses = ["notice"]) go_binary( name = "go_generics", srcs = [ - "generics.go", "imports.go", + "main.go", "remove.go", ], visibility = ["//:sandbox"], diff --git a/tools/go_generics/generics.go b/tools/go_generics/main.go index 30584006c..30584006c 100644 --- a/tools/go_generics/generics.go +++ b/tools/go_generics/main.go |