Skip to content

diegogaulke/etl-txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang TXT ETL example

This is an example on how to extract information from a text file, transform and load it into some datasource.
Information is extracted line by line using regex expression for each type of file defined by env vars (see below).
There are two implemented entities, debt and client. You can implement your own adding new extractors, transformers and loaders that supports your file.
The default loader method is to print extracted and transformed information.

Build

dep ensure
go build

Run...

Set env vars FILENAME and FILE_TYPE

export FILE_TYPE=debt
export FILENAME=debts
./etl-txt

Releases

No releases published

Packages

No packages published

Languages