From 459bb4531f92f8663afb6f36aa9be5b789bd591f Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 6 Jul 2018 21:18:14 -0700 Subject: Update vendor dependencies --- vendor/golang.org/x/sys/unix/example_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vendor/golang.org/x/sys/unix/example_test.go (limited to 'vendor/golang.org/x/sys/unix/example_test.go') diff --git a/vendor/golang.org/x/sys/unix/example_test.go b/vendor/golang.org/x/sys/unix/example_test.go new file mode 100644 index 00000000..10619afd --- /dev/null +++ b/vendor/golang.org/x/sys/unix/example_test.go @@ -0,0 +1,19 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin dragonfly freebsd linux netbsd openbsd solaris + +package unix_test + +import ( + "log" + "os" + + "golang.org/x/sys/unix" +) + +func ExampleExec() { + err := unix.Exec("/bin/ls", []string{"ls", "-al"}, os.Environ()) + log.Fatal(err) +} -- cgit v1.2.3