helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileTemplate

func CompileTemplate(filePath string, maps ...TemplateData) error

CompileTemplate compile template file

func Download

func Download(url string, dest string) error

Download download file and save to destination

func Handle

func Handle(err any)

Handle error

func ReadLine

func ReadLine(fallback string) string

ReadLine read input

func Unzip

func Unzip(src string, dest string) error

Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

Types

type TemplateData

type TemplateData map[string]any

TemplateData structure

Jump to

Keyboard shortcuts

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