From 3a21ef192628f6952eaa981bcdf718a35a4b43c7 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 13 Dec 2017 10:43:58 -0800 Subject: convert to go buildpack --- vendor/github.com/google/gops/examples/hello/main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vendor/github.com/google/gops/examples/hello/main.go (limited to 'vendor/github.com/google/gops/examples') 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) +} -- cgit v1.2.3