generator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// This is the path where we store all the images.
	AssetsDirPath string
)
View Source
var MemeFiles []*MemeFile

MemeFiles these are the file names of the memes available from the bot

View Source
var (
	// OutputTempDir is a temporary directory where we will write our images
	OutputTempDir string
)
View Source
var PermittedFileExtension = []string{
	".gif",
	".jpg",
	".jpeg",
	".png",
	".webp",
}

PermittedFileExtension contaisn the extension that are allowed to use

Functions

func GenerateMeme

func GenerateMeme(kind, text string)

GenerateMeme does what it says

func SetPkgConfig

func SetPkgConfig(ch chan string, assetPath, tempPath string)

Types

type MemeFile

type MemeFile struct {
	Kind      string
	Filename  string
	FontSize  float64
	Extension string
}

Jump to

Keyboard shortcuts

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