config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB() (*sql.DB, func(), error)

NewDB create *sql.DB for SQLite3. SQLite3 store data in memory. The return function is the function to close the DB.

Types

type Arg

type Arg struct {
	// FilePath is CSV file path. This CSV file is imported into the DB.
	FilePath string
	// HelpFlag is HelpFlag flag.
	HelpFlag bool
	// Usage print help message
	Usage func()
}

Arg is a structure for managing options and arguments

func NewArg

func NewArg() (*Arg, error)

NewArg return *Arg that is assigned the result of parsing os.Args.

Jump to

Keyboard shortcuts

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