dong

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 0 Imported by: 1

README

dong ٩ʕ◕౪◕ʔو

Fun ASCII emojis readily available in your terminal!

Faces are scraped from http://dongerlist.com/

Getting Started

Prerequisite

You'll need to have sqlite3 installed first.

Installing

go install github.com/miodzie/dong/cmd/dong@latest

You'll have to get some dongs downloaded before you can start:

  • $ dong scrape

Print a dong!

  • $ dong

    ༼⌐■ل͟■༽

Print a dong by category(s)

  • $ dong happy

    ୧[ * ಡ ▽ ಡ * ]୨

Additional help

$ dong help

TODO

  • Build a dong workshop!
  • Favorite / name dongs
  • UI pop up with fuzzy search, cat search, etc

About

ヽ༼ຈل͜ຈ༽ノ FOREVER DONG ヽ༼ຈل͜ຈ༽ノ

License

Please see LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emoji

type Emoji struct {
	Text     string
	Category string
}

func (Emoji) String

func (d Emoji) String() string

type Fetcher

type Fetcher interface {
	Fetch() ([]Emoji, error)
}

Fetcher fetches dongs in any fashion desired. There is a default Web Scraper implementation of this from http://dongerlist.com in the commandline package. It returns the dongs found and any error encountered.

type Repository

type Repository interface {
	Random() (Emoji, error)
	RandomByCategory(string) (Emoji, error)
	Count() int64
	Categories() ([]string, error)
	Save([]Emoji) error
}

Directories

Path Synopsis
cmd
dong command

Jump to

Keyboard shortcuts

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