diff options
| author | Christine Dodrill <me@christine.website> | 2017-12-13 10:43:58 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2017-12-13 10:43:58 -0800 |
| commit | 91dd3b19f69bfbeefb22c66f75ea3321f2f97bb8 (patch) | |
| tree | 39b7911168d9ffc501894b79842975735bde6c81 /vendor/github.com/google/gops/examples | |
| parent | 141a3320ff790cbaa52319371de530ae9fd09d89 (diff) | |
| download | xesite-91dd3b19f69bfbeefb22c66f75ea3321f2f97bb8.tar.xz xesite-91dd3b19f69bfbeefb22c66f75ea3321f2f97bb8.zip | |
convert to go buildpack
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) +} |
