forked from browserutils/kooky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add finder interface, rework chrome impl, add examples
- Loading branch information
Showing
47 changed files
with
2,238 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package kooky_test | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/zellyn/kooky" | ||
_ "github.com/zellyn/kooky/allbrowsers" // This registers all cookiestore finders! | ||
// _ "github.com/zellyn/kooky/chrome" // load only the chrome cookiestore finder | ||
) | ||
|
||
func ExampleReadCookies_all() { | ||
// try to find cookie stores in default locations and | ||
// read the cookies from them. | ||
// decryption is handled automatically. | ||
cookies := kooky.ReadCookies() | ||
|
||
for _, cookie := range cookies { | ||
fmt.Println(cookie) | ||
} | ||
} | ||
|
||
var _ struct{} // ignore this - for correct working of the documentation tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.