Documentation ¶ Index ¶ func NewDB() (*sql.DB, func(), error) type Arg func NewArg() (*Arg, error) 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. Source Files ¶ View all Source files argument.go db.go Click to show internal directories. Click to hide internal directories.