extras

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package extras contains extra functions that are not part of the main package. Currently, custom watermarks are implemented here.

Index

Constants

View Source
const DefaultFontName = "unifont.ttf"
View Source
const DefaultWatermarkName = "sarumaj.png"

Variables

View Source
var EmbeddedFonts = getEmbedded(fonts, "fonts")

EmbeddedFonts returns a map of available fonts.

View Source
var EmbeddedWatermarks = getEmbedded(watermarks, "watermarks")

EmbeddedWatermarks returns a map of registered watermarks.

Functions

This section is empty.

Types

type Embedded

type Embedded map[string]io.ReadCloser

Embedded is a map of embedded files.

func (Embedded) Keys

func (e Embedded) Keys() []string

Keys returns the keys of the embedded map.

func (Embedded) String

func (e Embedded) String() string

String returns the keys of the embedded map as a string.

Jump to

Keyboard shortcuts

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