gt

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureElementScreenshot

func CaptureElementScreenshot(htmlFile, outputImageFile string, w, h int) error

func GenerateHTMLFile

func GenerateHTMLFile(outputFile string, data GTData) error

func ReadInputLines

func ReadInputLines(linesCount int) ([]string, error)

func ReadLinesFromFile

func ReadLinesFromFile(filePath string) ([]string, error)

func WriteToGreentext

func WriteToGreentext(dest string, tmpl []byte, lines []string, thumbnailPath, font string, fontSize int, previewOnly bool, bgColor, textColor string, width, height int, customDateTime string) error

Types

type GTData

type GTData struct {
	Timestamp     string
	UniqueID      string
	Lines         []string
	Thumbnail     string
	ThumbnailSize int
	FontSize      int
	StyleBlock    template.HTML // holds dynamic CSS styles
	Template      []byte
}

greentext data struct

Jump to

Keyboard shortcuts

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