pkg

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

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

Go to latest
Published: Aug 2, 2021 License: Unlicense Imports: 4 Imported by: 1

README

go-fortunes/pkg

Go package for parsing and retrieving fortune files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(search Search) ([]fs.File, error)

func Fortune

func Fortune(options Options, file fs.File, destination io.Writer) error

func StrFile

func StrFile(file fs.File, destination io.Writer) error

Types

type Options

type Options struct {
	Short bool
	Size  int
}
type Search struct {
	Regex     *regexp.Regexp
	Offensive bool
}

Jump to

Keyboard shortcuts

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