utils

package
v0.0.0-...-f2bb099 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPathFromParams

func BuildPathFromParams(imageFormat string, imageFolder string) string

func GetHomeDir

func GetHomeDir() string

func MakeRequestAndCreateDocument

func MakeRequestAndCreateDocument(url string) *goquery.Document

func MakeRequestWithQuery

func MakeRequestWithQuery(url string, queries map[string]string) []byte

func MakeSimpleRequest

func MakeSimpleRequest(url string) []byte

func SaveToDisc

func SaveToDisc(contents []byte, path string) bool

Types

type Config

type Config struct {
	FlickrApiKey string
}

func LoadConfig

func LoadConfig(configPath string) *Config

type FlagArray

type FlagArray []string

func (*FlagArray) Set

func (i *FlagArray) Set(value string) error

func (*FlagArray) String

func (i *FlagArray) String() string

type Params

type Params struct {
	ConfigPath  string
	Source      string
	Search      string
	Folder      string
	ImageFormat string
	Count       int
	Excludes    FlagArray
}

func GetInitialParams

func GetInitialParams() *Params

Jump to

Keyboard shortcuts

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