You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/vendor/github.com/MercuryEngineering/CookieMonster
李光春 2e9b615888
- update ip
1 year ago
..
.gitignore - update ip 1 year ago
.travis.yml - update ip 1 year ago
LICENSE - update ip 1 year ago
README.md - update ip 1 year ago
cookiemonster.go - update ip 1 year ago
testcookies.txt - update ip 1 year ago

README.md

CookieMonster

GoDoc Build Status

A simple package for parsing Netscape Cookie File formatted cookies into Go Cookies

Install

go get -u github.com/MercuryEngineering/CookieMonster

Example

import (
  "fmt"
  "github.com/MercuryEngineering/CookieMonster"
)

cookies, err := cookiemonster.ParseFile("cookies.txt")
if err != nil {
  panic(err)
}

for _, cookie := range cookies {
  fmt.Printf("%s=%s\n", cookie.Name, cookie.Value)
}