mirror of
https://github.com/google/gops.git
synced 2024-11-24 08:22:25 +02:00
examples/hello: simplify the minimal example
This commit is contained in:
parent
62f833fc9f
commit
467d918128
@ -12,9 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if err := agent.Listen(&agent.Options{
|
if err := agent.Listen(nil); err != nil {
|
||||||
Addr: "127.0.0.1:4321",
|
|
||||||
}); err != nil {
|
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
time.Sleep(time.Hour)
|
time.Sleep(time.Hour)
|
||||||
|
Loading…
Reference in New Issue
Block a user