go-opml

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2014 License: BSD-3-Clause

README

go-opml

Build Status

go-opml aims to be a Go package for parsing OPML files.

Installation

go get github.com/gilliek/go-opml/opml

Usage

Parse OPML from file:

package main

import (
	"github.com/gilliek/go-opml/opml"
	"log"
)

func main() {
	doc, err := opml.NewOPMLFromFile("path/to/file.xml")
	if err != nil {
		log.Fatal(err)
	}

    //...
}

Parse OPML from URL:

package main

import (
	"github.com/gilliek/go-opml/opml"
	"log"
)

func main() {
	doc, err := opml.NewOPMLFromURL("http://www.example.com/file.xml")
	if err != nil {
		log.Fatal(err)
	}

    //...
}

License

BSD 3-clauses

Directories

Path Synopsis
Package opml provides all the required structures and functions for parsing OPML files, as defined by the specification of the OPML format: [OPML 1.0] http://dev.opml.org/spec1.html [OPML 2.0] http://dev.opml.org/spec2.html It is able to parse both, OPML 1.0 and OPML 2.0, files.
Package opml provides all the required structures and functions for parsing OPML files, as defined by the specification of the OPML format: [OPML 1.0] http://dev.opml.org/spec1.html [OPML 2.0] http://dev.opml.org/spec2.html It is able to parse both, OPML 1.0 and OPML 2.0, files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL