files

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

type FileWriter struct {
	// contains filtered or unexported fields
}

func New

func New(dir, templateFile, filenameTemplate, downloadMedia string) (FileWriter, error)

func (*FileWriter) Write

func (f *FileWriter) Write(post *client.Post) error

type FilenameDate

type FilenameDate struct {
	Year  int
	Month string
	Day   string
}

type FilenameTemplateContext

type FilenameTemplateContext struct {
	Post *client.Post
	Date FilenameDate
}

type PostFile

type PostFile struct {
	Dir  string
	Name string
	File *os.File
}

type TemplateContext

type TemplateContext struct {
	Post *client.Post
}

Jump to

Keyboard shortcuts

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