From a4589d95d6795227ec34c345d068f87cd16c8244 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sun, 9 Jul 2017 08:44:09 +0700 Subject: [PATCH] Fixing Timestamp type name in cookie example --- examples/cookie/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cookie/main.go b/examples/cookie/main.go index 2572558..ff3f7d9 100644 --- a/examples/cookie/main.go +++ b/examples/cookie/main.go @@ -71,7 +71,7 @@ func main() { func setcookies(host string, res *string) cdp.Tasks { return cdp.Tasks{ cdp.ActionFunc(func(ctxt context.Context, h cdptypes.Handler) error { - expr := cdptypes.Timestamp(time.Now().Add(180 * 24 * time.Hour)) + expr := cdptypes.TimeSinceEpoch(time.Now().Add(180 * 24 * time.Hour)) success, err := network.SetCookie(host, "cookiename", "cookievalue"). WithExpirationDate(&expr). WithDomain("localhost").