bookmarks

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 4 Imported by: 0

README

bookmarks

Netscape Bookmark File Format Parser Library

TODO

  • Add support for categories
  • Add support for generating bookmarks file

Documentation

Overview

Package bookmarks is used to parse Netscape compatible bookmark file exports

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTimestamp

func ParseTimestamp(ts string) (time.Time, error)

ParseTimestamp converts timestamp to time.Time

Types

type Attribute

type Attribute struct {
	Key string
	Val string
}

Attribute contains named element attributes

type Bookmark

type Bookmark struct {
	Name       string
	Href       string
	AddDate    string
	Attributes []Attribute
}

Bookmark contains single bookmark

func Parse

func Parse(r io.Reader) ([]Bookmark, error)

Parse parses read stream to list of Bookmarks

Jump to

Keyboard shortcuts

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