Skip to content

worldline-go/convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert

Helper repo to covert excel to custom text file.

This tool uses excelize and supports XLSM / XLSX / XLTM / XLTX files.

Usage

Create a config file config.yaml and pass with the env variable CONFIG_FILE.

input: /path/to/input.xlsx
sheet: Sheet1

map:
  custom_1: # convert to map of the column
    C: Sequence
    E: TD

parse:
  custom_value1:
    map: custom_1
    rows:
      - 31-32

export:
  - name: csv
    template: |
      {{ range $_, $element := .custom_value1 -}}
      {{ $element.Sequence }},{{ $element.TD }}
      {{ end }}
    output: /path/to/output.csv

Releases

No releases published

Packages

No packages published