internal

package
v0.0.0-...-bbd21b2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirectory

func GetDirectory() (string, error)

GetDirectory func

func GetDirs

func GetDirs(path string) []string

GetDirs func

func GetEncodedSvg

func GetEncodedSvg(pathToSvg string) string

GetEncodedSvg func

func GetFileName

func GetFileName(fn, author string) string

GetFileName func

func GetPhotoDev

func GetPhotoDev(dir, slugName string) string

GetPhotoDev func

func GetPhotoDimension

func GetPhotoDimension(path string) (int, int)

GetPhotoDimension given path

func GetPhotoProd

func GetPhotoProd(dir, slugName string) string

GetPhotoProd func

func GetPhotos

func GetPhotos(path string) []string

GetPhotos given path

func GetSHA1

func GetSHA1(filePath string) string

GetSHA1 func

func RemoveAll

func RemoveAll(path string) error

RemoveAll func

func Resize

func Resize(inPath, author, outPrefix string, sizes []int)

Resize func

func Template

func Template() string

Template func

func UniqueID

func UniqueID() string

UniqueID func

Types

type Collection

type Collection struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Src      string `json:"src"`
	Color    string `json:"color"`
	SrcHd    string `json:"src_hd"`
	Width    int    `json:"width"`
	WidthHd  int    `json:"width_hd"`
	Height   int    `json:"height"`
	HeightHd int    `json:"height_hd"`
}

Collection struct

Jump to

Keyboard shortcuts

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