test.go: Add a pseudo-shebang line.

This is not actually a shebang. Go doesn't support those.
This hack only works when run from within a shell.
The file gets treated as a shell script, and the first line
replaces the process with an invocation of "go run".
This commit is contained in:
Anthony Yeh 2015-06-16 13:36:46 -07:00
Родитель 3853058c1e
Коммит f99c0422b1
1 изменённых файлов: 2 добавлений и 0 удалений

2
test.go Normal file → Executable file
Просмотреть файл

@ -1,3 +1,5 @@
///bin/true; exec /usr/bin/env go run "$0" "$@"
// Copyright 2015, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.