aboutsummaryrefslogtreecommitdiff
path: root/lib/os/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os/example_test.go')
-rw-r--r--lib/os/example_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/os/example_test.go b/lib/os/example_test.go
index 574490a6..5fc15488 100644
--- a/lib/os/example_test.go
+++ b/lib/os/example_test.go
@@ -1,6 +1,5 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
package os_test
@@ -22,8 +21,8 @@ func ExampleEnvironments() {
}
func ExampleIsBinary() {
- fmt.Println(libos.IsBinary("/bin/bash"))
- fmt.Println(libos.IsBinary("io.go"))
+ fmt.Println(libos.IsBinary(`testdata/exp.bz2`))
+ fmt.Println(libos.IsBinary(`os.go`))
// Output:
// true
// false