Skip to content

chrisfarms/nzb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nzb.go

Little helper package for reading NZB files in Go (golang)

Install

goinstall github.com/chrisfarms/nzb

Godoc

type Nzb struct {
    Meta  map[string]string
    Files []NzbFile
}
func New(buf io.Reader) (*Nzb, os.Error)
func NewString(data string) (*Nzb, os.Error)
type NzbFile struct {
    Groups   []string     `xml:"groups>group"`
    Segments []NzbSegment `xml:"segments>segment"`
    Poster   string       `xml:"attr"`
    Date     int          `xml:"attr"`
    Subject  string       `xml:"attr"`
    Part     int
}
type NzbSegment struct {
    XMLName xml.Name `xml:"segment"`
    Bytes   int      `xml:"attr"`
    Number  int      `xml:"attr"`
    Id      string   `xml:"innerxml"`
}

About

NZB file parser package for Go (golang)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published