phrasegen

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

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

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 2 Imported by: 0

README

phraseGen

Phrase Gen app uses markov chains to generate new phrases according to it's own matrix of words.

Settings

It's possible to setup application in a two ways:

  1. Set environment variables manually;
  2. Set these variables in .env file (but you need to rename .env.example to .env);

Also you should specify location to the file which contains plain text / parsed text in JSON format with the following model:

[
        {
                "number": 0,
                "date": "anydate",
                "text": "text"
        }
]

It will skip all fields except field "Text", which will be parsed and applied to the chain.

To specify the file you have a few options:

  1. Setting env variable "GO_FILE";
  2. Setting the flag "file" when launching application;

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of application
	Version string

	// Revision of application
	Revision string

	// Environment of application
	Environment string

	// Notifier is an app-wide error notifier
	Notifier *gobrake.Notifier

	// Logger is an app-wide logger
	Logger *logrus.Logger

	// Config is a settings for the application
	Config Configuration
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ErrbitHost string
	ErrbitID   int64
	ErrbitKey  string
}

Configuration of the file

Directories

Path Synopsis
Package markov implements markov chains.
Package markov implements markov chains.

Jump to

Keyboard shortcuts

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