818 B
818 B
CookieMonster
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)
}