8000 GitHub - mengzhuo/cookiestxt: cookiestxt implement parser of cookies txt format · GitHub
[go: up one dir, main page]

Skip to content

About

cookiestxt implement parser of cookies txt format

Resources

Stars

23 stars

Watchers

1 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

cookiestxt

Build Status Go Reference GoReportCard Coverage Status Mentioned in Awesome 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>

About

cookiestxt implement parser of cookies txt format

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0