From 8932d3d196f6ebfaacdb64d5a6f6b2159582555b Mon Sep 17 00:00:00 2001 From: Davincible Date: Sun, 25 Dec 2022 21:01:44 +0100 Subject: [PATCH] docs: readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ee11080..6eac2a7 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,14 @@ func LoadCookies(cookies []Cookie) chromedp.ActionFunc // and loads in the cookies into the browser. func LoadCookiesFromFile(path string) chromedp.ActionFunc +// SaveCookies extracts the cookies from the current URL and appends them to +// provided array. +func SaveCookies(cookies *[]Cookie) chromedp.ActionFunc + +// SaveCookiesTo extracts the cookies from the current page and saves them +// as JSON to the provided path. +func SaveCookiesTo(path string) chromedp.ActionFunc + // RunCommand runs any Chrome Dev Tools command, with any params. // // In contrast to the native method of chromedp, with this method you can