memorable

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Length int
	// contains filtered or unexported fields
}

Config contains the configuration for the file storage

type Provider

type Provider struct {
	Config *Config
}

Provider implements an alias generator

func New

func New(c *Config) *Provider

New initializes the alias generator and returns a new instance

func (*Provider) Generate

func (p *Provider) Generate() string

Generate returns a random alias

Jump to

Keyboard shortcuts

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