Skip to content

MercuryEngineering/CookieMonster

Repository files navigation

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)
}

Releases

No releases published

Packages

No packages published

Languages