Documentation
¶
Overview ¶
Package parser provides CSV recipient filtering using logical expressions.
This file implements the high-level Filter() function that: - Applies a logical expression to each recipient - Normalizes field names to lowercase - Supports email fallback field
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSheetCSVStream ¶
func GetSheetCSVStream(sheetURL string) (io.ReadCloser, error)
GetSheetCSVStream fetches a Google Sheet as a CSV stream. It extracts the sheet ID and GID from the provided URL and constructs the export URL.
Types ¶
type Recipient ¶
func Filter ¶
func Filter(recipients []Recipient, exp expression.Expression) []Recipient
Filter applies the provided logical EXPRESSION to a slice of recipients. It returns only those recipients for whom the expression evaluates to true.
The expression is evaluated case-insensitively, and field names are normalized to lowercase.
Click to show internal directories.
Click to hide internal directories.