downloader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// SaveTo is the path to save the downloaded image.
	SaveTo string `json:"save_to" yaml:"save_to" xml:"save_to" toml:"save_to" mapstructure:"save_to"`
}

Configuration represents the configuration for the downloader.

func InitializeWithDefaults

func InitializeWithDefaults() *Configuration

InitializeWithDefaults initializes the configuration struct with default values.

func (*Configuration) GetSaveTo

func (configuration *Configuration) GetSaveTo() string

GetSaveTo returns the path to save the downloaded image.

Jump to

Keyboard shortcuts

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