cookiestxt
CategoryAuthentication and Authorization
SubcategoryAuthentication and Authorization
Stars0
provides a parser of cookies.txt file format
About cookiestxt
cookiestxt
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>
Frequently Asked Questions
What is cookiestxt?
cookiestxt is a Authentication and Authorization library for the Go programming language. provides a parser of cookies.txt file format
How do I install cookiestxt?
Install cookiestxt with the Go module system using `go get mengzhuo/cookiestxt`. Check the repository for the current installation instructions.
What category does cookiestxt belong to?
cookiestxt is listed under Authentication and Authorization, specifically Authentication and Authorization.