utils

package
v0.0.0-...-51cbd6a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWriterFunc

func GetWriterFunc(out string) (func(dataframe.DataFrame) error, error)

func IsCSV

func IsCSV(name string) bool

func ParseDate

func ParseDate(dateStr string) (time.Time, error)

Types

type ParsedRootArgs

type ParsedRootArgs struct {
	Symbols   []string
	StartDate time.Time
	EndDate   time.Time
	Out       string
	Config    string
}

func ParseArgs

func ParseArgs(
	symbols []string,
	startDateStr string,
	endDateStr string,
	out string,
	config string,
) (ParsedRootArgs, error)

func ParseRootArgs

func ParseRootArgs(cmd *cobra.Command) (ParsedRootArgs, error)

Jump to

Keyboard shortcuts

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