microformat2

package module
v0.0.0-...-3954f29 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2014 License: MIT Imports: 3 Imported by: 0

README

Microformat Go Toolbox

A Golang microformat2 parser.

Mission

Provides a parser to easily builds application and library on microformat2.

Usage

License

This project is free and opensource. The license is the MIT License.

Roadmap

Features

  1. (planned) parse a goquery document
  2. (planned)

Requirements

  • Goquery
  • Golang

Installation

go get github.com/loic-fejoz/microformat-golang-toolbox
go install github.com/loic-fejoz/microformat-golang-toolbox

Security

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccParse

func AccParse(aNode *html.Node, result *Result, root *Element)

func AppendProperty

func AppendProperty(elt *Element, propName string, propVal interface{})

func GetUID

func GetUID(elt *Element) (string, error)

Types

type Element

type Element struct {
	Types      []string
	Properties map[string][]interface{}
	// contains filtered or unexported fields
}

func Append

func Append(elt1 *Element, elt2 *Element) *Element

func NewElement

func NewElement(types []string) *Element

type Result

type Result struct {
	Items      []*Element
	Rels       map[string]string
	Alternates []interface{}
}

func NewResult

func NewResult() (res *Result)

func Parse

func Parse(doc *html.Node) (result *Result, err error)

Jump to

Keyboard shortcuts

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