func main() { … } type Entry … // parseCookieFile parses a Netscape cookie file as described in // http://www.cookiecentral.com/faq/#3.5. func parseCookieFile(name string, r io.Reader) ([]*Entry, error) { … } func parseCookieLine(line string) (*Entry, error) { … }