mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
- Modified Godeps/Godeps.json by hand - [TEST] Updated welcome docs hash to sharness - [TEST] Updated contact doc - [TEST] disabled breaking test (t0080-repo refs local)
17 lines
364 B
Go
17 lines
364 B
Go
package eventlog
|
|
|
|
import "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
|
|
|
func ExampleEventLogger() {
|
|
{
|
|
log := EventLogger(nil)
|
|
e := log.EventBegin(context.Background(), "dial")
|
|
e.Done()
|
|
}
|
|
{
|
|
log := EventLogger(nil)
|
|
e := log.EventBegin(context.Background(), "dial")
|
|
_ = e.Close() // implements io.Closer for convenience
|
|
}
|
|
}
|