Popularity
1.6
Growing
Activity
5.2
-
15
1
6

Programming language: Go
License: MIT License

cookiestxt alternatives and similar packages

Based on the "Authentication and OAuth" category.
Alternatively, view cookiestxt alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of cookiestxt or a related project?

Add another 'Authentication and OAuth' Package

README

cookiestxt

Build Status GoDoc GoReportCard cover.run go

cookiestxt implement parser of cookies txt format

Usage

package main

import (
        "log"
        "strings"

        "github.com/mengzhuo/cookiestxt"
)

func main() {
        buf := strings.NewReader(`
        # This example taken from http://www.cookiecentral.com/faq/#3.5
        #HttpOnly_.netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103
        `)
        cl, err := cookiestxt.Parse(buf)
        log.Print(cl, err)
}
$ go run main.go 

[NETSCAPE_ID=100103; Path=/; Domain=netscape.com; Expires=Fri, 31 Dec 1999 23:59:59
 GMT; HttpOnly] <nil>