parser

package
v0.0.0-...-487c905 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAnonData

func ParseAnonData(anonDataDir string, fieldNames []string) (map[string][]string, error)

ParseAnonData reads text files from provided directory based on provided field names. In other words if file name matches one of the provided field names, it is loaded into the map[fieldName][]anonymizationValues. Returned map will be used in anonymization process to match original values with corresponding anonymization values.

func ParseCSV

func ParseCSV(filename string) ([]string, []map[string]string, error)

ParseCSV takes a CSV file containing logs and transforms it into a list of maps, where each map entry represents a log line. Such format is required to be able to modify log data (replace original values with anonymous values). It is also returning names of the CSV columns. Names of the columns (field names) are needed to grab corresponding anonymization data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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