Documentation
¶
Overview ¶
Package cookiestxt implement parser of cookies txt format that commonly supported by curl / wget / aria2c / chrome / firefox
see http://www.cookiecentral.com/faq/#3.5 for more detail
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse cookie txt file format from input stream
Example ¶
buf := strings.NewReader(` # This example taken from http://www.cookiecentral.com/faq/#3.5 #HttpOnly_.netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100105 `) cl, _ := Parse(buf) fmt.Printf("Name[0]=%s, Value[0]=%s, Len=%d", cl[0].Name, cl[0].Value, len(cl))
Output: Name[0]=NETSCAPE_ID, Value[0]=100105, Len=1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.