goreadability

package module
v0.0.0-...-a2ad4c0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

README

Goreadability

Overview

Arc90 Readability implementation in Golang

Status

Not ready yet.

Installation

To instal goreadability use go get.

$ go get github.com/bndr/goreadability

After that just import the package in your project

import "github.com/bndr/goreadability"

Usage

readability.Read(url)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(html string) *treeNode

Exported method Accepts either a link or HTML string (TODO) or io.Reader (TODO)

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func (*Stack) Len

func (s *Stack) Len() int

Return the stack's length

func (*Stack) Peek

func (s *Stack) Peek() (value *treeNode)

Return the value of the element on the top of the stack but don't remove it. If the stack is empty, return nil

func (*Stack) Pop

func (s *Stack) Pop() (value *treeNode)

Remove the top element from the stack and return it's value If the stack is empty, return nil

func (*Stack) Push

func (s *Stack) Push(value *treeNode)

Push a new element onto the stack

Jump to

Keyboard shortcuts

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