bmk

package
v0.0.0-...-02154e7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DealChildren

func DealChildren(ch *[]bm, order int)

DealChildren recusively updates the children

func Restore

func Restore(jsonPath string)

Restore tries to restore bookmark from the backup

Types

type App

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

App encapsulates this app

func NewApp

func NewApp(filename string) *App

NewApp returns an app that implements App interface

func (*App) Doit

func (a *App) Doit(filer Filer, order ...int)

Doit executes everything

func (*App) ResolveJSON

func (a *App) ResolveJSON(fc []byte) *Top

ResolveJSON populates 'top' from the json

type Filer

type Filer interface {
	FileContents(string) ([]byte, error)
	WriteToFile(string, []byte)
}

Filer is an interface that is implemented by the client

type Top

type Top struct {
	Checksum string  `json:"checksum"`
	Roots    roots   `json:"roots"`
	Version  float64 `json:"version"`
}

Top needs a doc

Jump to

Keyboard shortcuts

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