diff options
Diffstat (limited to 'vendor/github.com/google/gops/examples')
| -rw-r--r-- | vendor/github.com/google/gops/examples/hello/main.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/google/gops/examples/hello/main.go b/vendor/github.com/google/gops/examples/hello/main.go new file mode 100644 index 0000000..2ee3479 --- /dev/null +++ b/vendor/github.com/google/gops/examples/hello/main.go @@ -0,0 +1,19 @@ +// Copyright 2016 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. + +package main + +import ( + "log" + "time" + + "github.com/google/gops/agent" +) + +func main() { + if err := agent.Listen(nil); err != nil { + log.Fatal(err) + } + time.Sleep(time.Hour) +} |
