discover

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

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

one-neat-thing-today Build Status

Daily provider for an interesting concept, term, event, or idea.


Command-line Tool

Usage
$ ontt <options>
[Neat Thing] - [Definition|Description]
(link to top example of thing)
Options
Short Long Parameters Description
-a --after-date [date] shows all neat things starting (inclusive) on date until $today (inclusive)
-b --bibliography shows wikipedia-style bibliography with links
-e --export [start date] ([end date]) writes out formatted file of neat things starting at date until $today, or [end date] (if provided).
-f --format [output format] ([formatter]) allows user to specify whether the response is structured or plaintext. Initially, ONTT will provide output as plaintext, json, or xml. If [formatter] is provided, then ONTT will attempt to use the go command by piping the output as json into the Formatter command.
-l --link limit output to only the link of the neat thing
-n --name limit output to only the name of the neat thing
-o --output [file path] Writes neat thing(s) to out to [file path]
-p --prior-days [number of days] shows [number of days] neat thing(s) before today
-t --timeline [start date] ([end date]) output html page that shows horizontal timeline with snapshots of webpages when hovering of the date/thing; navigation tools will be displayed on the timeline when it spans a sufficient range of dates.
-u --url [host:port] Directs ontt client to get new things from ontt server at [host:port]
-v --version displays version of ontt command as well as api version of ontt service
-w --week shows the neat things from start of week until $today
-y --yesterday shows yesterday’s neat thing

Documentation

Index

Constants

View Source
const (
	BucketName = "neatThings"
)

Variables

View Source
var (
	KeyDateFormat = time.RFC3339
)

Functions

func Fetch

func Fetch(key string, db *bolt.DB) (nt *neatthing.NeatThing, err error)

func NewNeatThing

func NewNeatThing(logger *log.Logger, dbFilePath *string) (neatthing.Service, error)

NewNeatThing returns the neatThing service implementation. Panics when persistent store cannot be opened.

Types

This section is empty.

Directories

Path Synopsis
cmd
discoverysvr command
gen

Jump to

Keyboard shortcuts

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